Yeah, my old code for that game was pretty janky too. I was doing it all on Unity as that's the engine I'm most familiar with, and... let's say there were some not performance-friendly ways I had coded things.