Implemented the messageListener to keep track of the amount of food cooked