how did the changes in agriculture contribute to the development of the shang dynasty