An automatic battleship game