This is the code that builds out the matchups in the Matchup Builder section of the website when 2 teams in a league are selected. It grabs all games from the 'games' table in the database, and then goes through them to figure out head-to-head records, biggest/smallest margins of victory and things like that.

Website Project