a game state machine that constructs a model and view and configures them