Fix a bug in leave_game.

leave_game function used undefined variable id.