Why does he always talk to her and not me when we are standing together?

So you know how you start to think "hey maybe he really likes me" and then he does something that makes you second guess again? Well that keeps happening to me. yesterday was a great day because he initiated conversation with me and was joking around with me and he was trying to find out a little about me more. well this is what he did today (and yesterday too) that makes me second guess. Well actually this is about the only thing he does to make me second guess.

Whenever I am with my friend, he always talks to HER and not me. Like I am standing right there and he just ignores me.

example: the bell was about to ring and my friend was sitting in the desk in front of me. he and his friend came and he put his stuff on her desk (we were all standing up). And his friend gave her a piece of gum and the guy I like said "why would you give her a piece of gum? she is a demon." and I started laughing and he was like nah I'm just kidding.(but she is sort of mean to him). and then he joked around with her a little yesteday too.

So my question is this: why does he ignore me and talk to her?

i never see him talk to her unless I am right there with her.

my other friend said it was a way to get to me, without having to talk to me. he feels more comfortable talking to her.
Why does he always talk to her and not me when we are standing together?
Post Opinion