Completed simple version of minimax