 
   doctest Game.Collision
 
+  alias Elixoids.Ship.Location, as: ShipLoc
   alias Game.Collision, as: Collision
 
   test "No collision between asteroid and rock" do
-    ship = {1, "AAA", 1020.0, 0, 20, 5.8957, "FFFFFF"}
+    ship = %ShipLoc{pos: %{x: 1020, y: 0.0}, radius: 20}
     asteroid = %{id: 2, pos: %{x: 899.0, y: 0}, radius: 80}
 
     assert false == Collision.asteroid_hits_ship?(asteroid, ship)
   end
 
   test "Collision between touching asteroid and rock" do
-    ship = {1, "AAA", 1020.0, 0, 20.0, 5.8957, "FFFFFF"}
+    ship = %ShipLoc{pos: %{x: 1020.0, y: 0}, radius: 20, tag: "AAA"}
     asteroid = %{id: 2, pos: %{x: 920.0, y: 0}, radius: 80}
 
     assert Collision.asteroid_hits_ship?(asteroid, ship)
   end
 
   test "Collision between overlapping asteroid and rock" do
-    ship = {1, "AAA", 1000.0, 0, 20, 5.8957, "FFFFFF"}
+    ship = %ShipLoc{pos: %{x: 1000.0, y: 0}, radius: 20, tag: "AAA"}
     asteroid = %{id: 2, pos: %{x: 1000.0, y: 0}, radius: 80}
 
     assert Collision.asteroid_hits_ship?(asteroid, ship)
   end
 
   test "Detect between overlapping asteroid and rock" do
-    ship = {51, "AAA", 1000.0, 0, 20, 5.8957, "FFFFFF"}
+    ship = %ShipLoc{pos: %{x: 1000.0, y: 0}, radius: 20, tag: "AAA"}
 
     asteroid1 = %{id: 73, pos: %{x: 1000.0, y: 0}, radius: 80}
     asteroid2 = %{id: 99, pos: %{x: 1000.0, y: 200}, radius: 80}

  end

  test "No Collision" do
    refute Collision.bullet_hits_ship?(%{pos: %{x: 50, y: 50}}, {1, "", 4, 4, 20, 0, ""})
    refute Collision.bullet_hits_ship?(%{pos: %{x: 0, y: 50}}, {2, "", 4, 4, 20, 0, ""})
    refute Collision.bullet_hits_ship?(%{pos: %{x: 50, y: 0}}, {3, "", 4, 4, 20, 0, ""})
  end

  test "Unique ships" do

    ]

    ships = [
      %ShipLoc{pos: %{x: 120.3, y: 864.4}, radius: 20, tag: "AAA"},
      %ShipLoc{pos: %{x: 545.6, y: 757.5}, radius: 20, tag: "AAA"}
    ]

    assert [] = Collision.detect_bullets_hitting_ships(bullets, ships)
