How did conflict and cooperation within early civilizations relate to the use of resources?