So you were saying the if/else code from line 218 - 226 does not work?
There’s no gain in your timed choice so I suppose you are using the choice naming to get to the if/else code.
Give your choice a name in line 150:
choice (CHOICE_NAME) [timed: 3] “Up”{
.
.
.
For the if/else code on line 218:
if (CHOICE_NAME is “Up”){
.
}else{
.
}