Rewrite heuristique calculus and correct renversement issue when finding
a good path with another jeton after the end of the path.