adding minimax.