How to optimize grid level generation?

Holy ■■■■ man I just needed some pointers I didn’t need you to code it all out for me… Thank you! I’m away from my pc atm until tomorrow morning so I’ll give it a try then but thank you!