8Puzzle solver written in Haskell