Lol.
First. The confederate flag flew over the CSA not the USA. Separate and different country.
Second, the Civil War was not fought to end Slavery in the USA. Secession was legal and not just about that. And there were slaves in the north before, during, and after the war. A little history would help you it seems.
Ironically, since the north won, we all got to become enslaved by a large central government. So yippie.