what were the goals of the civil war