MATLAB implementation of the board game Battleship