lines 14-18 can be replaced with `gamestate.players[player_id].selectedUnits = units_hit.slice(0, 1)`