add makefile, unit test, and some clean up.
basic battle instance.