created a random number generator in board method to put a ship