How did the north and the south each plan to win the war?