PuzzleTree is a class used in 8 puzzle