checks for invalid puzzles & multiple solutions