Security and game theory : algorithms, deployed systems, lessons learned