When you push the “shuffle” button, the block arrangement will be in any order randomly.
You can also manipulate the blocks by clicking it. This application can solve this puzzle automatically
by pushing the “solve” button. The algorithm is A*, you can change the size of the puzzle by selecting the number.
Note that the solve-function might not finish the calculation under the N>3 condition.