Here's a tip that makes it easier to deal with cravings:
I found that trying to deny that you are having a craving only makes the craving stronger.
What helped me a great deal was to honestly and fully admit, even out loud, "Boy! I really really want a cigarette right now, BUT I'm not going to have one because of all these reasons......."
That is a form of "self-positive-reinforcement."
Mint lollies worked better for me. It can't totally alleviate a craving, but cram enough peppermint in your head it will make a lot of difference.
The idea is not to replace one compulsion with another compulsion.
The idea is to overcome being a slave to cravings.