Added concept of handlers to game state so that we can customize
behavior on the transitions of different states.