PC shuts down when playing game.

I agree with Osgeld. Give your heatsinks, fans, and vents a good cleaning. Dust is the enemy of all things electronic ;D!