C++ implementation of text-based Battleship game