What was your plan to deal with cravings, habits, and to build new habits?
Share that here and we can give you some feedback on where you might make it stronger.
If you didn't have such a plan, than that most likely was the problem.
You can't stay quit purely on will power.
So if you don't have a plan, you need to make one.
Again, post it here and we can support you in making it strong.
You can do it--but you have to put in the will and the work to make it happen.
Hope is not a plan.