Fixing issue with termation not occouring if all food consumed.