recursion works? minimax doesnt