If I was you, I would sit down and really think about whether or not you want to be with this guy, or whether you’re just worried you wont be able to find anybody else. If you come to the decision that you want to move on then I would focus on letting go of the feelings for him (easier said than done I know). Try to focus on releasing those links that tie you to him like you’re letting go of a balloon, until you have no more balloons left.
Don’t beat yourself up for thinking about him, that is only natural when you spend so much time with somebody. I believe it’s important to keep the memories, but let go of the emotions, that way you can just look back on the great time you had without getting that strain of emotion when you miss somebody.
Also, I have always found that the best thing to do is to get some distance from the person you’ve broken up from, even just temporarily, I think it’s harder to get over someone when you still have contact with them.
I hope this helps, please feel free to ignore my advice.