Click on the pieces to make them slide. I've only completed the game once, and it's pretty hard!
Thanks to @learnlearncouk for his tutorial, pretty much all of the coding is his!