factor out game data and display data