Hello

i'm a girl who has been feeling troubled, ever since i found out about a guy friend's secret sins.
i used to like this guy friend, and he told me that he believed in Jesus and God. I thought we were meant to be, and grew very attached to him. initially, he told me that he had a crush on someone else, and that he only liked me as a friend. but that we could still go out together. so we did, but i began to notice that he would often meet that other girl he liked after meeting me. It made me realize that he was using me as an ego boost so that he could feel confident enough about himself to go out with someone else he really liked.
i've confronted him about this issue, but he has only begun to avoid me.
other than that, he also began covering up the fact that he had been getting to know that girl, too, even to the point of gas-lighting me so that i would believe whatever he told me. i managed to find out that he had been actively engaging in conversation with the girl, even going out on dates and trips with her, possibly being intimate with her too, though she ALREADY had a boyfriend. Perhaps that was why he tried to hide his relationship with her. cos it was not ethical.
ever since i found out about all of these and confronted him about it yet again, he began to ignore me altogether.
the last time we spoke, he told me that we should stop seeing one another for some time. but he did not know for how long.
this had been tormenting me a lot, since it has been pretty traumatic to find out about all his dirty secrets.
to know that he has been using me, feeling justified about it, and even engaging in cheating behaviors with someone else's girlfriend. Though i felt very upset with him, i too felt bad for having tried to use intimacy to please him and make him like me back.
during those times that i went out with him, i saw that he was physically attracted to me. And i eventually used that to get him to like me more. I held hands with him and allowed him to kiss me. i found out later that these were wrong, and therefore had been trying my best to atone for my mistakes.
i'd been posting bible verses on how sensuality is actually wrong, and about how his acts of cheating with that girl on her boyfriend, is wrong as well. sometimes my posts would be very personal, and i would even fear that he would get offended by those posts and therefore try to get back at me behind my back, together with the girl.
all of these thoughts have been affecting and troubling me greatly.
how do i carry on?