convert a json to a game