adding dependency injection for the game object