I’m so confused with this girl. So we got into an argument because I didn’t have her back even though she was wrong so she told me we aren’t friends?

and I’m not the type to fight over things because I don’t see the point of arguing so I said ok we didn’t speak for like 10 days then in class one day she came up to me and offered a hug I’m not rude so I accept then she pulled back and said I forgot we aren’t friends I just looked at her a kept quiet the later on the day we were in maths class I was writing and she came up to my desk and push my hand and I drew a line through my page this made me laugh and she laughed and smiled to and then she walked away later that day it was time to go home so my friends and I where all about to greet each other and her a her friends came over to greet us good bye for the weekend i got a call from my mom and she was giving out handshake she approached me wanting to giving me a hand shake but I was busy on a call then after my call ended her best friend came and gave me a hug and I hugged her back I think she got jealous because after the hug she pulled my backpack strap and when I turned around to look at her she hugged me and her friend said no no no I’m the only one that can hug him and she said his my friend I’ve known him longer and i replied that oh we are friends know and she said yes but you betrayed me and I didn’t appreciate that then we both apologies then three days later she invited me to her birthday party so should I go or not
I’m so confused with this girl. So we got into an argument because I didn’t have her back even though she was wrong so she told me we aren’t friends?
Post Opinion