Simple Battleship Game writing by C++