Have you checked the temperatures of your components when they're trying to run games? When's the last time you cleaned out the inside of the case? Sometimes when a PC turns off like that, it could be a temperature trigger point set in the BIOS has been exceeded, and it's turning off the PC to prevent damage.