Um am not a doctor or anything but what I know is that you can try and avoid watching tempting videos like porn or erotic massage and if you feel the urge to do that get out of that secret place you are and go to where many people are and you will have escaped that time, if it is very late in the night try to shift your mind from the thought and think of something else like what you love or what you want your future to be like and most of all tell God the situation you are in and that you need help and God will help you,, though it seems futile try it helps