Split battle coordinator code and it's test code

Fixes #11