Battleship - a simple version with 1D array