based on Complexity Explorable: " Barista's Secret - An illustration of one of the most prominent statistical physics models for criticality"