My ex girlfriend text me while in no contact
So I will make this short. My ex girlfriend broke up with me about 2 months ago and we've had no contact for 1 month, I was a bit stalkers at first because she never explained why she didn't want to be with me. It was long distance I may add and we only saw each other two weekend a month. Anyway, she text me this evening telling me she was watching something and it reminded her of me. It was weird as I was thinking about the same thing earlier randomly. She wished me luck for my final year at uni. I replied thanking her and told her I had had the same feeling earlier in. She then told me she was watching something else we used to watch and she hopes I don't mind her texting me sometimes. I told her I wasn't happy about it as it was hurting me more and giving me false hope, she said sorry and she wanted to talk because she still thinks and cares about me and she broke up with me because she wants to put her time into things that make her happier. She said she didn't want to be single to mess around and said she is feeling very selfish atm and wants to focus on herself. I accepted that and told her that she shouldn't text me back as I'm moving on and she is making things worse.
Did I do the right thing and any idea why she text me?
I'm sorry about how muddled this is, I'm writing this on my phone.