Added clause to test whether a subset of rooms is connected