   """
   def bullet_hits_ship?(bullet, ship) do
     %{pos: %{x: bx, y: by}} = bullet
-    {_ship_id, _tag, sx, sy, sr, _, _} = ship
+    %{pos: %{x: sx, y: sy}, radius: sr} = ship
 
     sq(bx - sx) + sq(by - sy) < sq(sr)
   end

    stop_bullets(dud_bullets)
  end

  defp handle_asteroid_hitting_ships(asteroid_ships, game_pid) do
    Enum.map(asteroid_ships, fn {a, s} ->
      Game.Server.say_ship_hit_by_asteroid(game_pid, s)
      # TODO send to ship directly
      Game.Server.hyperspace_ship(game_pid, elem(s, 0))
      Game.Server.asteroid_hit(game_pid, a.id)
    end)
  end


  defp handle_bullets_hitting_ships(game, bullet_ships, game_pid) do
    Enum.each(bullet_ships, fn {b, s} ->
      Game.Server.say_player_shot_ship(game_pid, b.id, s.id)
    end)

    bullet_ships
