Moved conversation logic to ChatBot class.