wrapped the meat of the script in the runTheBot() method