Ways to stop masturbating:

Avoid pornography.
Stay active.
Spend more time with others.
Exercise.
Go punt.