Hi and welcome to Techzonez.
Some questions to start with.

You say when it reboots there is one program running,what is that program?

To determine whether it could possibly be your gamepad,does it still randomly boot itself if you leave the gamepad plugged in?

Do you have any "wake up" devices or events enabled in the Power Management options of your BIOS?