Fixed the training bot, improved simulate.coffee