build game data structure.