Arrange the pieces in increasing order!
(click/tap the piece you want to move)
Seen many times before. Just for the fun of programming it!
Only half of the possible permutations are allowed for a solvable game. Reshuffling is done by randomly shifting the empty field around for a large number of times, starting from the solved configuration.