Just clarifying . . . you've said you are allowed to protect yourself. That is true as I understand it. Self defense is a valid reason for stopping someone who is trying to hurt you.
How did the car's window get broken? And how did that stop someone from hurting you?