match_helper: rename a few variables for clarity

* real_teams --> team_nums
* teams --> team_keys
match_helper: iterate over alliances.values()
Remove unused import and fix newlines