What was the primary objective of the Confederate Army during the battle?