Separated the Pugbot class into Pugbot, CommandHandler, and PugState