Update MazeGenerator.java

added prims algorithm