I would start by killing all the active processes that weren’t this game. Then, go to your application manager and try to make sure you kill anything running in the background you don’t need. Then try running only the game, minimizing it, opening your photos, and then going back and see if that still resets it. If it does, you may just be out of luck.