My computer turns off while playing a computer game on it

Hi, i have a compaq presarrio c300 and i bought spore for it. i started playing and it worked fine for a couple of days then when i hit the space stage it would sometimes the screen whould just turn blue with white wrighting on it for a split second and then restart.
i have the basic compaq presarrio c300 system it is a laptop (it is xp)

"You need full memory installed"... This means you need to max out your laptops system memory. You are probably running only 256MB or less. You might be able to install 1GB max. Also, a larger, faster hard drive may help with this gaming issue too