C++ Battleships game