updated Mazewar.java and MazeServer.java