SYSTEM FOR CONTROLLING THE POSITION OF A TOOL AND METHOD OF CONTROLLING THE POSITION OF SAID TOOL