After the Civil War, the South had to reinvent its economy because?