Alot of us have been there before man.
Personally for me, i started working out, hard, whenever that would happen. It would be a big enough of a distraction for me, plus i actaully started to enjoy it, got me in decent shape again to.
Good luck man, remember always keep distracted when...