While the Union army was losing battles in the east, where were they successful against the Confederates ?