added code for battleship that runs the game