Ensuring css classes get cleaned up when leaving a game.