Matrix game solver