Some of your variables do not have a preceeding '4' sign. Secondly, comment out all lines, then start enabling each line to see where exactly the error occurs.
_________________________
There are two types of vessels, submarines and targets.