Fix transitioning between game states based on the connection state.