replace Puzzle.java