tweaked the bot algorithm