fixing bugs in lookahead bot