Lastly, it was the point for the main ingredient for the recipe to succeed, and that was min-max algorithm, we had to know the number of levels it has travel, in order to to compute min-cost and ...