run motor inside interrupt

What is it that is supposed to stop the motors rotating backwards when the tank has moved sufficiently far away from the wall?