looking at the pitiful network of tree houses and huts and underground burrows that made up the thriving metropolis in which they lived-all logs and twine and dried mud , everything leaning to the left or the right-did the trick .