Integrate `mostLikelyState` into `forwardBackward`.