i would suggest , keep busy , if you feel like doing it maybe go for a walk to some exercise , even voluntary work.
good luck.
Thanks so much. I feel much better now and I'll try all the things you mentioned :)
Divert your mind by concentrating on your breathing.Learn abdominal breathing.. Do it regularly.This simple technique will help you to calm your sexual urge.Google microcosmic orbit. By this technique you will convert your sexual urge to mental energy.
Your worries about masturbation are more harmful than the act. Some time you can do masturbation in a proper way. Do it with lubricated hand.Do not stop breathing.Relax your perineum.Empty your bladder before the act.Take regular meals,do some exercise in short you should start healthy live style. Be cheerful and do not worry about masturbation.This is applicable to male and female.