How to catch a pirate – cooperation is key