C++ classes for a simple battleship game