Ok, I auto formatted the code and spaced out the curly brackets but when I went to remove some of them if wouldn't compile the sketch because they were missing. Unless you are saying that they are in all the wrong places (hence ,why there's 6 closing brackets at the very end of the sketch) then I understand what you are saying, and that it needs some Tidying.
PaulS:
There is no switch statement in you code. Therefore, there are no cases. Therefore it's hard to understand what your problem with the switch statement is.
as far as the switch statement goes, I didn't get that far yet.
I tried it on one of my earlier versions of this sketch and couldn't get it to work.
I guess I will start small on a more simple sketch to get the hang of how they work and how to get it to work in my case. thanks for your input