Okay so I live in Pa where we have castle doctrine law and I was in a bad situation the other night. I was at my gfs uncles house where I was given permission to throw a party and I was authorized to be in charge of the house. So because of a misunderstanding some girls boyfriend came at me and wanted to fight me. Now me being the unconfrontational one as I am I backed away as much as I could and eventually backed into a corner. I asked him and his girl to leave several times but they wouldnt and I wasnt able to call the cops. His friends were trying to restrain him but he almost got away. At one point he became unrestrained and started coming toward me. I was unarmed because I knew it was a party with friends and didnt feel the need to have my G23 on me. Luckily his friends got him and calmed him down and everything got sorted out. My question is since I was unable to retreat any further plus I was in a home I was authorized to be in would I be justified in putting him at gun point if I had my glock on me? Also would I be justified in shooting under Castle doctrine Law?