adding a test for another gap in the bot's AI
bugfix: implements code to make new AI scenario test pass
pep8 cleanup