Was Y being jealous or am I delusional?

There is this guy Y and I’ve liked him for a few years. And his best friend z is my best friend. Few months ago Z mentioned Y liked me then hurried up and back tracked. Y is always a little mean but also a bit controlling like once I took a nap and he called me 10 times to see where I was and then called my friend to ask. Or whenever I talk about a man he’ll get kinda annoyed. But yesterday Y picked up his cousin while we hung out. Ys cousin (we will call him A) always tries to touch me without fail. Today Y started making comments towards A and A told him stop being jealous several times. Then Y started making jokes about how all he thinks about is me with his cousin there and his cousin was like it’s true. Eventually Ys cousin goes to sleep.
Me and Y are sitting in the car and he starts asking me questions like have I smashed his cousin and why I let him touch me (half the time I was pushing him off and it wasn’t anything too weird) A minute later Y asked me how his cousin was touching me and it was just a stern shoulder and neck rub so I did it for a minute to Y. Then he was like that feels good. Then he started doing it to me and getting closer. In the 3 years I’ve known him that’s never happened. Do you guys think he’s jealous or maybe he likes me?
Was Y being jealous or am I delusional?
Post Opinion