First it started with slow engaging when shifting from forward to reverse
Next, when the fluid was checked it had foam.
Then, within a few miles it kept downshifting from overdrive and back.
Then while checking the fluid level it was over full and then it started
coming up out of the dip stick tube.
The fluid is now turning dark.
What is causing this problem?