Super confused and could use anyone’s help at this point

Lisette • In a happy relationship 🥰 17 and loving life!

So to set the scene...

My ex-boyfriend and I were together for 3 years (had some rough patches but we smooshed the time together) and we had this beautiful relationship. October 14th he comes over to hang out and I tell him how I’ve been feeling the last few weeks (he was really distant and said he didn’t want to go to prom or formal just because his friends weren’t going) and he breaks up with me. We were both sobbing and upset and what have you not, straight out of a movie scene. A few days goes by and I decide to ask him if he wants to talk, he says sure he’d love that. So we talk for like a week or so and everything seems to be pointing in a good direction. All of a sudden he stops like being cute and what not and basically starts ignoring me. I ask him why and he says “I just need you to know it’s over” so I decided not to talk to him anymore but I still would look at him and try to talk to him in groups and such, but I still love him with everything in me and I want him back so bad. So I decided to give him a taste of his own medicine and completely ignore him, and it worked. He tried to talk to me and such but I was a brick wall until I caved and talked to him, but now he’s kinda reverting back to what he was doing and I can’t let myself get hurt like that again. I want him back and I’m struggling with how to get him, can anyone help?