Very carefully.
Sometimes a room leads back to itself.
Drop an object to mark the rooms where you've been.
Be careful, the thief may pick up these discarded items.
Some passages are one way only.