Shawn:

Yes, you're right. I will correct this and post updated code both in the ZIP package and the top post in the thread. I also cleaned up those long lines a little bit.
_________________________
There are two types of vessels, submarines and targets.