fixed bug in which all of the rooms failed to be connected