Self sabotage

I have about 100 pounds to lose….that I’ve been trying to lose for the past three years. I do good for a short time and decide to treat myself to something as a reward for having done well. Which of course trickles over into the next day and the next. How can I stop the thinking that I deserve a reward? Or is the reward even the issue?