Adding version 2 of the bot

First version of the bot resolving (most of) the issues when the game
lags and subsequently disconnects.