Distraction from negative thinking is one way to get through a tough time.
There's a sticky post at the top of Psychotherapy Forum, 10 common cognitive distortions, that will help to evaluate your thought-behavior connections.
This is a great place to be; take your time and try the waters.