Nash equilibria: the variational approach