Arduino – Control a DC motor with TIP120, potentiometer and multiple power suppl

It is not enough to modify the code to drive the motors in both directions.

You should use a H bridge for each motor.

Just google Arduino + H bridge there are tons of examples on how to do it.