Fixed random number generation, started placeAllShips function which asks user for input…