made gamestate serializable