Computing Nash equilibria by iterated polymatrix approximation