Program successfully solves possible puzzles!