It's overheating and switching off to tr and protect yhe device. This is a great way to destroy a phone. Try and keep it cooler by having shorter sessions and take it out of any case it may be in.
Welcome to Android Central! Which device do you have? If it's significantly underpowered, it might not be able to handle the stress the game puts on it.