There are so many errors there I hardly know where to start, and I'm not sure I should bother because you haven't answered any of my questions so far, but anyway...
LCDpin.write(254);
LCDpin is a number not an object with a .write() method, what you have there is the same as
13.write(254);
Then there's
pinMode(LCD,OUTPUT);
LCD is not defined anywhere.
pinMode(switchPin, INPUT);
switchPin is not defined anywhere and switchPinA and B are not used.
digitalWrite (LCDpin(254));
Total nonsense, equal to
digitalWrite (13(254));
Rob