   """
   def asteroid_hits_ship?(asteroid, ship) do
     %{pos: %{x: ax, y: ay}, radius: ar} = asteroid
-    {_ship_id, _tag, sx, sy, sr, _, _} = ship
+    %{pos: %{x: sx, y: sy}, radius: sr} = ship
 
     :math.sqrt(sq(ax - sx) + sq(ay - sy)) <= sr + ar
   end

  end

  defp check_for_collisions(game, game_pid) do
    all_asteroids = Map.values(game.state.asteroids)
    # TODO move to game process
    all_bullets = Map.values(game.state.bullets) |> Enum.reject(fn b -> b == :spawn end)
    all_ships = Map.values(game.state.ships)

    bullet_ships = detect_bullets_hitting_ships(all_bullets, all_ships)
    # List of {BulletLoc, Ship Tuple}

  """
  def bullet_hits_ship?(bullet, ship) do
    %{pos: %{x: bx, y: by}} = bullet
    %{pos: %{x: sx, y: sy}, radius: sr} = ship

    sq(bx - sx) + sq(by - sy) < sq(sr)
  end
