Changed getting room ID to ray casting.