You seem to insist on 'production' rather than design, and you've 'changed your mind' a few times through this post. Adak, matsp and Salem have all suggested doing a design, and a full design at that.
So problems like this would be worked out in the design phase, not the production phase. The mono-directional SDLC goes a bit like:
Analysis - You should work out what you need, what you need to do
Design - Design everything, function names, variable names, IPO charts, anything you can think of
Development - The coding bit you seem so hell bent on doing
Testing - Yes you should test your game
Documentation - Document it (internal documentation - source comments) and user docs etc
Implementation - How you're releasing and distributing your game, etc
Evaluation - How your game went, did you get done what you established in the analysis phase?
So seem to have done step 1 & 2 in your head and moved straight to development, which is getting you in trouble.