This problem has been happening for over a month now. My custom built computer will just turn off i can be watching netflix playing a game or on facebook and it will just turn off. i have brought my computer into a microcenter and was told there diagnostic test showed all the hardware working and deemed it a software problem and nothing else they can do since the problem wasn't triggered by anything specific. prior to giving my computer to them i had done a fresh install of windows 8. When i got the computer back i tried to install windows 10 hoping 8.1 was causing the issue,my computer was unable to update to 10 it would turn off halfway through or just restart. i bought a new hard drive assuming it may be a bad drive and after two tries i was about to install windows 10 the problem counties. I have opened the case and made sure everything was connected properly and all fans working. When the problem first started no new programs or settings where made or downloaded. I am at a complete loss on what the problem is and would love to hear any ideas thanks in advance.
Mother board-GIGABYTE GA-970A-D3P AM3+/AM3 AMD 970 6 x SATA 6Gb/s USB 3.0 ATX AMD Motherboard
Psu-CORSAIR CX series CX600 600W ATX12V v2.3 80 PLUS BRONZE Certified Active PFC Power Supply
GPU-MSI Radeon HD 7870 GHz Edition DirectX 11 R7870-2GD5T/OC 2GB 256-Bit GDDR5 PCI Express 3.0 x16 HDCP Ready CrossFireX Support Video Card
CPU-AMD FX-8320 Vishera 8-Core 3.5 GHz (4.0 GHz Turbo) Socket AM3+ 125W FD8320FRHKBOX Desktop Processor
Ram-G.SKILL Sniper Series 8GB (2 x 4GB) 240-Pin DDR3 SDRAM DDR3 1866 (PC3 14900) Desktop Memory Model F3-14900CL9D-8GBSR
HDD-western digital blue 1tb rpm 64 mb/cache
cpu fan-CORSAIR Hydro Series H55 Quiet Edition Water / Liquid CPU Cooler 120mm
Mother board-GIGABYTE GA-970A-D3P AM3+/AM3 AMD 970 6 x SATA 6Gb/s USB 3.0 ATX AMD Motherboard
Psu-CORSAIR CX series CX600 600W ATX12V v2.3 80 PLUS BRONZE Certified Active PFC Power Supply
GPU-MSI Radeon HD 7870 GHz Edition DirectX 11 R7870-2GD5T/OC 2GB 256-Bit GDDR5 PCI Express 3.0 x16 HDCP Ready CrossFireX Support Video Card
CPU-AMD FX-8320 Vishera 8-Core 3.5 GHz (4.0 GHz Turbo) Socket AM3+ 125W FD8320FRHKBOX Desktop Processor
Ram-G.SKILL Sniper Series 8GB (2 x 4GB) 240-Pin DDR3 SDRAM DDR3 1866 (PC3 14900) Desktop Memory Model F3-14900CL9D-8GBSR
HDD-western digital blue 1tb rpm 64 mb/cache
cpu fan-CORSAIR Hydro Series H55 Quiet Edition Water / Liquid CPU Cooler 120mm