Implement game state transitions.