i was playing games and the system went off

Download a program called CoreTemp which measures the CPU's temps. Ideally you do not want the CPU temp to go over 80C (warm but doable), lower is better. But many small laptops seems to go over 90C and that's dangerous.