First pass, working version.

First pass at code for the sumo bot.
Pretty quick and dirty but works and is fairly clear.