Update puzzleSolver.java