Your code is calling you a liar. It says the buttons are connected to pins 1 and 9. No pin 0.
Try it with pins 9 and 10 and report back.
BTW why do you have functions case0() and case1() which are never used? Just to confuse anyone trying to read your code?
Steve