Hi again guys,
I found the bug in my “Battle boats” program just a few minutes before the close of the GameJam. So if your interested, I can upload a corrected version of the program. However, for the gamejam you need to look at the original submission because that’s all I could get done in the time frame of the contest.
It’s amazing how much clearer the mind gets when it has a few hours of rest and can look at the problem fresh again. What a difference!