A sequential theory of bargaining