Run the script in debug mode, put DEBUG ON in the first line of the script. This will allow you to step through the script and see which lines it's executing.
_________________________
There are two types of vessels, submarines and targets.