Maze java assignment