Update battleship.cpp