basic structure of game