i would grab the snake and restrain it so you can look at it's mouth more closely. if it struck the screen or whatever then it's mouth will most likely just go back to normal anyway. their mouths always look jacked up after they strike or eat. or if it was trying to get out then it could rough up some scales and knock it's labial scales out of whack - not a big deal, it'll go back to normal.
on the flip side, if it has mouth rot you would need to take immediate action to avoid any problems. you can use a paper clip to open its mouth... start at the back corner above the heat pits and slide it in and slowly rotate the clip to pry the mouth open. google 'mouth rot' or whatever to see what it looks like. this should not hurt the snake at all... nearly all carpets are 'nervous' at that age.
if you aren't comfortable with that i'd take it to a vet tomorrow.