miscarriage

So I have been having terrible pains. I figured it was because of my endometriosis. My ex told me to take a pregnancy test to make sure I wasn't pregnant. (Shortly after we broke up I slept with someone else, he knows, obviously) I took the pregnancy test, it came up positive. Someone who struggles with infertility, like myself, thinks this could be a wonderful blessing in disguise. I took another test and it was negative. Figuring it was a false negative I took another the next day. It was still negative. I went to the doctor today to find out I was pregnant and I miscarried. I talked to both parties, my ex boyfriend and the guy I was sleeping with, and explained everything going on. I didn't feel right not telling them what was going on. My ex boyfriend came over tonight and held me while I cried and he didn't know what to do or say. My best friend, who I was sleeping with completely stopped talking to me, the only thing he would tell me is he was worried because he knew he client take care of a child. Which is understandable. But he then told me he doesn't want anything to do with me and me having a miscarriage was all my fault. (I know it wasn't) it's been a rough couple of days and I don't know exactly what to think at this moment. Anyone with advice to help me get through this would be greatly appreciated