I developed a crush and I need help

So I was at my best friend house, I didn’t really like him at the time, (he is a male, just to clarify) and I don’t really know how but at some point we got sorta intimate (fingering cuddle etc no sex though) and he said that he “kinda” had a crush on me for a while... then we went on with our lives like nothing ever happen doing the same jokingly flirty jokes, but I can’t stop thinking about him... but I can’t do anything because about two weeks after that happen he got back with his ex girlfriend. I don’t know what to do. I don’t want to lose my best friend, but I also kinda want something else