removed connection functin and replaced with class definition and an init function that performs the connection
added connection object to BattleBot class
cleaned up class definitions