PaulS:
Did you make ANY attempt to create the three functions I mentioned? Did you make ANY attempt to move any of your code into those functions?If not, why not? You will never learn if you never try.
I wanted to but I dont even know where to start. I did try making 3 separate .ino files but didn't work either and now the panic is kicking in since i have to finish it tomorrow...