Refactoring the code in Game.php