Macbook Pro crashes when trying to play games?

My Macbook Pro crashes whenever I try to play Sims 3, Minecraft, or any other game I have. It had never done that before I installed OS X Mavericks.

Whenever I try to play a game it will freeze up and then my computer will restart itself because it encountered a problem. It doesn't do this with any other program, just games that I have installed.

Any ideas on what is causing it and how I could fix it?

Remove the games, reboot, reinstall the games.