The American Civil War caught both sides unprepared. How did the war effect both sides?