[SOLVED] Did my motherboard or psu die

Dec 9, 2018
6
0
10
I was playing games last night and my pc just kept shutting off monitor, keyboard, mouse. ETC. Everything but the blue front pannel led and the hard drive. I fliped off the psu, (the off button would not work everything turrend off) and turend it back on with the on button. That happend multiple times but only while gamming. All last night. When i loaded up csgo the same thing occurred but when i tried that again my it did not work. Only the front led and the hdd would turn on. What do i need to replace and what happened.