initial code for the battle ship game.