“sex and mental health”

Patient: I am 17(boy).I diverted too much toward sex.i have girlfriend n i maintain proper distance so i do not make some mistake.I get habituated of watching porn at the age of 13.I masturbate 1 or 2 times a day.I speak so less.I cant overcome my thoughts even in exam time.My mood keeps on changing.n I just remain lying on d bed in time when i dont have study stuff..please help me..i want to live happy n want to overcome that thing.