adding markov chain AI