How to beat sugar addiction

It was all going really well until Friday evening when, exhausted, stressed-out and off-guard, you reached out for a bar of chocolate/ glass of wine/ piece of cake.
Then you felt guilty so you had another bar of chocolate/ glass of wine/ piece of cake to take the edge off your feelings.