Why did the south lose the civil war?