What I had to do was change my own attitude first and stop trying to cover up or solve all of John's problems for him.
(I; to do; ) (What I had to do; was; change my own attitude first and stop trying to cover up or solve all of John's problems for him)
I What I had to do
to do was
change my own attitude first and stop trying to cover up or solve all of John's problems for him