If he stares at you all the time and has asked your seatmate about your male friend, there is a good chance he likes you.
You haven’t been receptive to his attempts to woo you in the past.
This may be why he is getting closer to other girls and prefers working with that one girl during group projects.
If you have noticed that when he talks to everyone in class, he doesn’t talk to you at all, it may be because he wants you to notice that he is ignoring you.
Oftentimes, guys will ignore a girl and focus their attention on other people in an attempt to make the girl feel self-conscious and left out.
This is often what they hope will make the girl feel compelled to start trying to get the guy’s attention.