Overheating, power supply issues, video card issues, RAM issues, all would cause this. If it's a sudden shutdown, it's probably overheating or power supply. CPU, video card and RAM would tend to freeze the system rather than cause a sudden shut down.