Started work on object oriented implementation

Last version of this bot was basically spaghetti code, I'm rewriting it
to be less awful