finished basic minimax.