the pirates used their grappling hooks to snare the pearl 's rigging and then swung themselves overboard , hanging tight onto their ropes as their bodies either slammed against the hull or swung onto the deck .