fixed bugs in function touchRoom