     Snake,
     World,
   }
+
   alias BattleSnakeServer.{
     Game,
+    Snake.Api
   }
+
   use BattleSnakeServer.Web, :channel
 
   def join("game:" <> game_id, payload, socket) do

    "game:" <> id = socket.topic
    game = Game.get(id)

    HTTPoison.start

    spawn fn ->
      game = Game.reset_world game

  end

  def make_move world do
    moves = for snake <- world.snakes do
      move = Api.move(snake, world)
      {snake.name, move.move}
    end

    moves = Enum.into moves, %{}
