This is my first time trying to code a version of battleship and I\'m keep coming up with this error but only sometimes. The code below checks for the position of a ship to