Update MazeLogic.java