Joshua waged war a long time with all these kings.