hurting myself

What should i do whenever I am mad or sad I always like twist/bend my knee on purpose idk why but I just want to hurt