I have a game that generates a random maze at the start. However, in order to do so, I have to have for loops inside of for loops, which makes for about a minute or so of lag from the time I press the play button to the time I can actually play.
How would I deal with this? How would I implement a loading screen?