I had built my first computer last january, which ran without a single problem until, one day when I started playing a new game which used a large amount of the computer's processing power it shut itself down, an action that the motherboard's diagnostics blamed on the power supply not supplying enough power (I got a cheap fifteen dollar one, not expecting this would be a problem), and afterwards, the computer would not be able to finish booting up before shutting itself down again. I ordered a new, forty dollar power supply, replaced the old one, hooked all of the power cables to the motherboard using the motherboard manual as a guide, and when I pressed the power button, the fans came on, the screen turned on, and, not having displayed anything, turned off again, starting a cycle of turning on then turning off every minute or so that stopped when I turned the computer off. the next time I turned on the computer, it appeared to be completely normal until about a minute after the desktop (windows 8.1) loaded, when it turned itself off again. Every power on since has been a version of one of these two, with no specific pattern. I also found that occasionally, one of the fans will start making a high, loud noise when the computer shuts itself down or if the screen is doing the thing where it turns itself on and then off every minute or so, which I assume is related to the "overclocking failed" message (on the same diagnostics screen that told me that there was a problem with the power supply) that the computer will show after the fan makes the noise, despite my never using the motherboard's overclocking software. When I went into the BIOS on one of the successful power-ons, I found that it will also turn itself off in the BIOS. The case is not dirty or dusty, the motherboard's diagnostics says that the two sticks of RAM have no problems, the original diagnostics message about my first power supply has not appeared with my second, and the cables and connections for the power supply in my case appear to be fine. Thanks for any help.