It could have over heated when you were gaming, the OS or something may have bugged to make the computer think when it started it was still over heating causing it to shut down to stop the heat from causing damage; that would also be why the laptops fan was going crazy. The CMOS battery would...