That is really cool! I wouldn't have thought to use a Markov chain like that, though tbh I haven't really worked with them since my college days