Solver works, but no error checking. Unsolvable puzzles crash browser