Basic state machine allows game to pause and resume