Check if rooms are connected