why , look at the battle of cannes , when the carthaginian infantry was almost broken , but the numidian cavalry rode back and hammered the back of the roman legions in time to save the battle and win a decisive victory for hannibal .