Update Maze.java

Changed order