Java Program for a random Maze