Added a statehandler class for the handling of the game states