finished GamesController.php composition