Roman legions, Rome aganst Carthage, Republic in Crisis, Reformers and generals, end of the republic