Added function for creating a new ship.