Cournot equilibrium: modern techniques applied to an old problem