updated game code to increase modularization

commented the old code, next commit i'll remove the old commented code,
just so we have more secure versions