small refactor on assign_players