updated the battleship game to use oop design