The Math Behind Random Choices: From Markov Chains to Snake Arena 2