Refactored placeAllShipsRandomly()