Matrix game calculator