Program for generating and displaying puzzles and writing the result to a PNG file