algorithm for expectiminimax 823777