leave room logic implementation