What were reasons why groups were frequently at war in Mesopotamia?