battle loop for testing runs to end