added getLeagueByTeam function.