Help?

Me and my boyfriend and some other friends were hanging out under a bridge by some train tracks, it was pitch black so no one could see anything... He was rubbing me and started to fingering me, me and him went to the other side of the wall by the tracks and rubbed it with the tip but could get it in, is this considered sex or just touching?