Given below are Legal Principles followed by a Factual Situation. Apply the principles followed by a factual Situation. Apply the principle to it and select the most appropriate answer for question among the four choices given.
LEGAL PRINCIPLE: Any act done in exercise of right of private defence shall not be an offence. The right to private defence in no case extends to the inflicting of more harm than it is necessary to inflicting of more harm than it is necessary to inflict for the purpose of defence.
FACTUAL SITUATION: 'X' saw an unknown man jumping the boundary wall and entering his house in the night. He hid himself in a corner carrying a sword and waiting for the person. The moment the person entered the house, he hit the person and cut his head. Whether 'X' committed offence of killing a man?
DECISION.