I found luigi in mario 64

I found Luigi as I started a new game in Mario 64. I 100% the entire game and afterwards I searched for proof of Luigi being in the game's coding, but I found no leads. 
I attempted every legend and myth on how to unlock Luigi, and as I was done Mario lied on the ground lifeless without a game over screen.
I thought I broke the game by triggering a self-locking bug, but then a model of Luigi rose from the L is real statue and Mario's stars were getting sucked out and given to Luigi. Luigi was first completely white, but when he received the stars his colors showed.
He then grabbed Mario and pulled him underground in front of the statue and then I was playing as him.
But the stars were gone and the coins as well, so I had to restart it all over again.
Instead of "L is real" it was written "M is real" on the star statue.
I noticed that some NPCs told me concerning things like,
Do you realise what you've done!?
Mario is dead!
You will pay for killing him! 
Some even attacked Luigi which was unexpected as they are supposed to be good guys.
As I finished the game again Peach kissed Luigi on the checks and they ate the cake in the castle.
But there was an eerie silence in the credits and pictures of Mario dying flashed on screen, including one where he was still underground, unable to do anything.
And then the game soft locked itself and I thought I heard muffling and screaming. Then the console turned off...
I could not turn it back on. Whatever happened broke the entire console, but sometimes it does flash on and off at random intervals and this image appears with static text stating, "Now he will die in my place as it is meant to be."