Case statement error

it took flashing it twice (don't know why the first one did nothing, the screen wouldnt even turn on) but now it is working as expected.