Implemented gridification and markov chain probabilities.