Dear Member, mood swings are a sign of internal imbalance. Signals emotional disturbance - stress and strain of 12th or teenage life, family and peer related issues, etc. Daily feeling burdened but unable to cope can keep accumulating inside and start changes in physical and emotional health. Rationalization or logic then is not sufficient. Eg i got to work vs dont feel like working. Masturbation is like a easy route to feel happy and forget problems. At 17, many boys would use this escape from daily tension. Build your mind to be solution focused and work on your coping skills. If you dont know how, ask for help.
Next Steps
Seek support of an expert psychologist (in your school or nearby)