Adding code for printing the puzzle.