Update MazeSolver.java