Added state transitions

Setup the whole state transition system for the game