How to be happy after a break up

I’m so sad. I just broke up with my boyfriend of almost two years. We started dating when I had just turned 13 and he just had turned 16 (the age sounds like a lot but we’ve known each other since birth lol) now we’re just about to turn 15 and 18 and he broke it off. He told his friend he was breaking it off with me because he liked this chick closer to his age. He cried too this friend saying he regrets dating me because our relationship was so messy. He told my best friend that our relationship was his biggest regret): everything’s so messy and he told me that the reason he broke up with me is because of our age (it’s an illegal relationship where I live) which is fair enough I guess. He also told me it was because he was busy doing his hsc exams and working on soccer. It hurts so much, I lost my virginity to him and he didn’t to me and I feel like that means more to me than it does to him. We have so so so many memories and they’re just gone and i don’t know how to cope. He told me too keep his jumpers and the pictures of us, and the ring he bought me. I’m so lost and I miss him but there’s nothing I can do ):