refactoring Game.cs