Cournot-Walras equilibrium as a subgame perfect equilibrium