mostly works. Sometimes has 1 room the isn't connected. Need to go over this code again