Game refactoring for better application management. Added GameEnv class as communication layer.