allow for unsolvable puzzles, removed pseudocode comments