change the way to fill the Maze