Thanks for the analysis of the game. There are specific rules for achieving one of the 3 endings. The good ending is only possible if you follow the recipe.