defmodule Game do defstruct board: nil, my_position: nil, name: "", health: 0 end defmodule Board do defstruct positions: %{}, width: 0, height: 0 end defmodule Snake do defstruct id: "", positions: %{} end