To keep your phone cool while gaming you should keep it out of direct sun (as this will impact the battery life too), and quit other processor-heavy applications before you start playing games. Some gaming phones feature built-in fans to keep them cool while gaming.