linking random rooms, but still segfaulting half of the time