Refactor AI into Bot class