refactor teams_controller / games_controller