updates set_teams method in matches_controller