Click on a tile (if there is a blank space next to it it will go there) or use arrow keys to move the tiles.
Note: this is also known as the 15 puzzle Post your times down in the comments. All code is by me! Cooltext.com for the text on the thumbnail