       :dim => Elixoids.Space.dimensions(),
       :a => game.state.asteroids |> Map.values(),
       :s => game.state.ships |> Map.values(),
-      :b => game.state.bullets |> filter_active()
+      :b => game.state.bullets |> Map.values()
     }
 
     {:reply, game_state, game}

  end

  def handle_cast({:spawn_asteroids, rocks}, game) do
    new_game = Enum.reduce(rocks, game, fn f, game -> new_asteroid_in_game(f, game) end)
    {:noreply, new_game}
  end

  @doc """

  # @spec snapshot(map()) :: Snapshot.t()
  defp snapshot(game_state) do
    %Snapshot{
      asteroids: Map.values(game_state.state.asteroids),
      bullets: Map.values(game_state.state.bullets),
      ships: Map.values(game_state.state.ships)
    }
  end
end
