Implemented the search algorithm. It is now possible to solve puzzles.