Brain for using markov chains in chatbots