Add Puzzle type to A*. Adds error handling for unsolveable puzzles