Code for solving one of those picture puzzles with 8 tiles and 1 missing space