Testing code for battles