Update leagueController.php