added target, 3rd magnet.  Added global variables for target, magnets position,value