What was President Lincoln's main goal during the war?