So, did you run the code with DEBUG ON to see what exactly is happening?
_________________________
There are two types of vessels, submarines and targets.