added minimax!