Eight puzzle: Using Jsp
Aim: Move the tiles to rearrange the numbers in sequence:
1 2 3
4 5 6
7 8
Moving the tiles: A tile is moveable if it is adjacent to the empty square.
To move a tile, click on it. The tile will move into the empty square.
Clicking on a non-moveable tile will do nothing.