Marks out disconnected "rooms" in a 2D array.