Update MazeGenerator.java

clean warnings