I did the encoding/decoding manually. Howver, I can redo it and check why it should not be correct.
_________________________
There are two types of vessels, submarines and targets.