Generating and displaying a maze in the console