I just pin them with my hastati, and principes using the manipular formations. Afterwards, I use whatever troops I have left that are not yet involved in the battle like my triari located on the flanks leaving two triari behind the fighting line, samnite infantry, skirmishers and cavalry and hit them on their backside. It works wonders for me, once one enemy unit routes, the res quickly follow.