I'd recommend using a state machine for a game
You should have three sub states for each state, init, logic, and exit.
You then call a reentrant function repeatedly and change states when required. The game runs as a tick until the state changes.
czietz wrote:I'm sensing a business model here: Buy cheap STs on eBay (don't have to be working), rip them apart, exchange cases among each other, sell them as "ULTRA RARE PROTOTYPE!!!".