a tip: make your game consist out of several loops, so for a battle just make another loop