Masturbation and religion

How do you guys feel about masturbating and your religion? I'm Mormon and I guess it's shamed apon but like seriously makes me feel happier and makes my cramps go away kinda. You can actually get in trouble for doing anything even remotely sexual in my religion which is pretty stupid but it makes me happier and feel better so really I don't get why it's shamed apon.