added stopping condition for puzzles that cant be solved yet.