Or use DEBUG ON in appropriate place inside your sacript to step through the script and find the lines that do not work correctly.
_________________________
There are two types of vessels, submarines and targets.