def dodgeball(players, balls) until players.all? { |p| p.is_hit? } throw(nearest_ball(balls), nearest_player(players)) end end