Initial implementation of TB in simulator, added battle length sanity check.