Both sides had planned a surpised attack on each others flank. Confederates were renforced and manged to win the battle.