Put the numbers in order so that they read 1-8. 
The 0 is the 'empty' place. Click on any number 
next to 0 and they will switch places. 
# of moves: