Worked on Battle engine

It does not work yet. Committing now so I can work on it over lunch.