Two US presidential candidates were guided by game theory