FIGS. 9A, 9B and 9C are a flow diagram illustrating the steps of a computer program usable with the computer 104 for the purpose of detecting the position of the gun 14 with respect to the base 12, detecting the condition of the switches 54, as well as the position switches 108 and the trigger 40.