implemented controller-functionality for views
gamestate for specifying the state of a game