Color Fading Mode Switching

First off, thanks for all your help, I'm pretty new at this. I understand what you're saying, but I don't know how to implement it. Could you please go into a bit more detail on how to rework buttonCheck()? Also, how would I end the modes?