connected rooms in a map work