Integrating battle simulation code with input
- adding some dev functions to randomly split map
- some bug fixes