Use to react on events in the game