This makes NO sense...Please Help!!!?

So this guy that supposedly liked me for a long time never said anything at all and now has a girlfriend. I don't care I'm not that kind of person, but he is still trying to get my attention. Got concerned that he hurt my feelings. I was mean back to him because he said mean stuff. The one thing I don't get is he doesn't like his best friend talking\helping me! If he sees this he comes over and is mean to his friend, but luckily his friend tells him off! I just wanted to hear what other ppl thought? Did I mention he has a girlfriend too!