Update PuzzleSolver.java