add createShips function