created ShipFactory
added a parameter to randomEvent