how did the ancient puebloans adapt to their physical environment