Markov Matrix for calculating win probability (C++)