updates to the battle engine

meh, i've been lazy, so im only uploading the part of the test engine
where i generate a random map and create 2 units with only races
defined.