Since it freezes during game play, and not during prime95, I would suspect two things.
1) Power Supply. If it's marginal, playing games will often push it over the edge, giving you random errors like this.
2) Bad RAM. Since the RAM doesn't say what it is, and is generic RAM, which isn't...