If you're hurting yourself then, yes, this counts as a problem.
I understand feeling a need to punish yourself when you do something bad (I think most people do to some degree), but I gotta say it's worrying to hear that you're mixing your sense of justice with physical punishment. I mean, some people like pain, if you know what I mean, and that's fine, but I think that's a case of people choosing it, not feeling they have to have it. Your feeling that you need to be physically punished worries me.
I have no idea what you think is "bad" and deserves punishment, and I don't want to preach to you what's right and wrong, but I would wish that you'd hold off on the physical punishment, at the very least the part about making bruises. I'd like to tell you that you should just try not to do bad things in the first place so you wouldn't need to punish yourself, but I get that there's a kind of satisfaction in doing that which can become pretty gratifying over time. I've had some experience in that area myself. Still, I can't help but think it would be best overall if you didn't see yourself as someone who needs to be punished, you know? Speaking from my own experiences I feel like I was being overly hard on myself and seeing more faults than were really there. I'm kind of assuming that when you say you do bad things that maybe some of them aren't really as bad as they seem to you so I'm kinda pushing you to see yourself in a better light.
I hope I didn't totally misinterpret things here.
It's like, not even really hurting myself (not at all, maybe I made it sound like I was being sad and inflicting self harm or anything but that's not it lol) or wanting to feel pain, it's just like, that I get this feeling I'm playing life unfair if I don't get back what I deserve for my actions. And not in the sense of that I feel like I need to be
punished but more that I just can't stand unfairness, so much to the extent that I'd be willing to do this sorta stuff, just to even it out and then I can feel at ease again. You could compare it with a situation where a person lied, and they start to feel so bad about themselves because they did that they eventally can't stand it anymore and come clear, and it's like a relief. Well that's kind of how it is. Like you said, it's just that I'm very harsh on myself and thinking 'okay this was wrong, you can set it right again', if I do something "wrong" lol.
For example if I skip a class yeah, (light example here lol), then when I get home I feel bad about it and I make myself do something that I dislike (like dishes or cleaning my room etc) to even it out, because I got to enjoy a free hour while I actually didn't deserve that, so by doing something like cleaning my room, it's evened out again. I hope I'm even making sense here lol. also thanks for answering