Was he flirting with me or just being a perv?

So we all work together. Let's call my crush Adam, and his friend Jerry. They're both 18. And I'm 21 Jerry and I were playing a game called "marry, sleep with, and kill". It's a game where the person gives you three people's names (we used people that we work with) and you pick who you would marry, sleep with or kill. And it EVERY single time that he would give me the three names, he would almost always include Adam. They had sent me to throw out trash, and Adam automatically offered to help me. But they told him no and sent Jerry instead. When me and Jerry were throwing out trash together and Jerry said something about a new manager that just started. And I admitted that the new manager was pretty attractive. He started laughing and then asked me to rank the guys who work here. I started off with the cute new manager, then when I was around 3rd place, Jerry was like, "3rd is my friend Adam?" Like why does Jerry keep bringing up Adam?

Then today, My shirt got caught on a bread tray and I accidentally flashed a female coworker. She laughed it off and brought it up later, and Adam said "Damn, I missed it".
Then, the topic of tattoos came up and I mentioned I just got an under boob tattoo done. And my female coworker asked what it was of, I told her it was hard to explain but that I'd take a photo of it and show it to her. And Adam said "why? You could just show it to us here" . My female coworker called him a perv.

Was Adam flirting with me?
Also, on a separate occasion, he got super close to me. I had my hand on a cooking pan and he put his hand over my hand and left it there. And about a week ago, he accidentally touched my butt, when I turned, he looked surprised and said "I'm really sorry. I didn't mean to". He looked genuine when he said that.
Was he flirting with me or just being a perv?
Post Opinion