NextBestMaxGain-class function

NextBestMaxGain