fixed the wayfindingRoom code