finished implementation of BuildLeagueTable