Basically, I want to isolate each battle on different threads and run them concurrently on the server. Each battle will run on its own and have its own context. Is it difficult to achieve that?
I found there're global variables and have to tweak some codes, but I don't know if it's trivial.