Metropolis Hastings Algorithm Python Code For Games