Simple Battleship game by C++