You do not need to worry about anything during the gameplay, including if your phone runs out of battery. The game will finish automatically and if the outcome is a win, your balance will be replenished accordingly.