fixed bugs with leaving and entering a room