Explanation:
 
In this routine, Torque attempts to repair itself. He keeps trying to do this until his damage is less than that of the enemy. If the enemy appears on Torque's perieter while Torque still has more damage, then he self-destructs to deny the enemy his flag.