Deserve Better

I was talking to this guy who has a girlfriend (I know I am awful). But he made it sound like he was unhappy with her and that he was going to break up with her. Saying how controlling she is and how she says horrible things to him. (He can't even speak to his coworkers cause she will freak out). So we were talking over email. He made a fake email because she looks through his phone. And we were talking like that for about a month. However, as we kept talking he started contradicting himself... The last emails we sent to each other was him saying that he isn't always unhappy with her some days he is happy with her and that he doesn't know what he wants (meaning to be with me or stay with her) and I realized how ridiculous I was being. That I was not only degrading myself but also hurting this other girl who had no idea what her jerk of a bf was doing. And I felt awful since I kept talking to him. So I called it off. I told him he needs to make a decision, that I'm not communicating with him until he figures it out. I actually said I never wanted to speak to him again even if their relationship didn't work out and he became single.. he was pretty upset and kept trying to convince me that it would be "better" or "smarter" to keep the door open. I told him that I deserved better and that he should have never pursued me if he wasn't planning on leaving his gf.
Idk I just question if I made the right decision. I mean I know calling it off was a good thing. I shouldn't be talking to someone in a relationship. But should I have kept the door open for the future? And it has been a little over a week since I called it off and it is really hard not to think about him... Sometimes I want to send him an email but I want to stick to my guns here. I dont want to flip flop. 
I'm actually not sure what I'm asking from you ladies.. Advice? Maybe reassurance I made the right decision? I just seem to find guys like this all the time. They never want to be with me. Be their #2 instead of being #1. I guess I'm just disappointed. 
Also.. We NEVER had sex. I just want to make that clear. We did get a little touchy... (kissing and touching... I think that's considered second base?) which I know I was wrong but it was only one time (which doesn't redeem me at all I get it) and shortly after I called it off with him.