 
     game_state =
       game_id
-      # TODO this call can fail with :noproc
       |> Game.state()
       |> Map.put(:x, explosions)
       |> convert()

defmodule Elixoids.Server.WebsocketGameHandler do
  @moduledoc """
  Websocket Handler for the graphics engine. Queries the game state at 30fps
  and publishes it to subscriber.

  1 hour idle timeout.
  """

  alias Elixoids.Api.State


  # Keep a bounded FIFO list of the recent explosion
  def websocket_info({:explosion, x}, state = %{explosions: []}) do
    {:ok, %{state | explosions: [x]}}
  end

  def websocket_info({:explosion, x}, state = %{explosions: explosions}) do
