What type of terrain did the Confederate Army face when attacking the Union positions?