Logic help

Joey im getting a problem with this. I changed it a little and it stops me from moving but i cant access the menu or anything. I have to hit the window button.
here is the code if anyone can help me:

#include defines.txt
if (isset(f5)) {
load.pic(v0);
draw.pic(v0);
discard.pic(v0);
status.line.on();
accept.input();
draw(o0);
show.pic();
}

get.posn(o0,v100,v101);

if (v101 == 127){
print("You finally reach the top of the building. You pull yourself up and are ready to walk "
"again.");
erase(o0);
load.view(0);
set.view(o0,0);
position(o0,121,110);
print("You bring yourself towards the middle of the building.");
draw(o0);
}


if (v101 == 29){
if(f88){
program.control();
set(f90);
}
else {
print("You stupidly go to the edge, slip, and fall.");
set(f88);
}
}
if (f90){
erase(o0);
shake.screen(1);
death_type = 1;
}


if (v100 == 99){
if(f88){
program.control();
animate.obj(o0);
load.view(16);
set.view(o0,16);
draw(o0);
move.obj(o0,87,167,3,f90);
}
else {
print("You stupidly go to the edge, slip, and fall.");
set(f88);
program.control();
animate.obj(o0);
load.view(16);
set.view(o0,16);
draw(o0);
move.obj(o0,87,167,3,f90);
}
}
if (f90){
erase(o0);
shake.screen(1);
death_type = 1;
}

if (said("examine")) {
print("You are on top of a huge building. If you slip and fall, oh man, I don't even "
"wanna talk about it.");
}

if (said("look sun")) {
print("The sun shines high and is beautiful. Someone looking for a tan would wanna come "
"up here and tan. The sun really gets you.");
}

if (said("fall")){
print("You stupidly let go and fall to your death.");
program.control();
animate.obj(o0);
load.view(16);
set.view(o0,16);
draw(o0);
move.obj(o0,98,167,3,f90);
}

if (f90){
erase(o0);
shake.screen(1);
death_type = 1;
}


if (said("look sky")) {
program.control();
stop.motion(o0);
print("The sky is blue and beautiful.");
print("Just then you hope no seaguls are flying around and relieving them selves.");
animate.obj(o1);
load.view(17);
set.view(o17,17);
set.cel(o17,1);
set.loop(o17,0);
position(o17,159,10);
draw(o17);
print("Oh shit.");
print("You run as far to the edge as you can.");
move.obj(o0,100,68,3,f117);
set(f117);
}

if(f117){
stop.motion(ego);
program.control();
print("Please don't let it shit. Please don't let it shit.");
move.obj(o17,100,10,2,f118);
set(f118);
}

if(f118){
animate.obj(o2);
load.view(18);
set.view(o18,18);
draw(o18);
move.obj(o17,159,0,2,f119);
follow.ego(o18,7,f120);
}
if(f119){
erase(o17);
}

if(f120){
print("SPLAT!!!");
print("YUCK!!!");
print("You whipe yourself clean of the shit.");
erase(o18);
}

if (v2 == 3) {
new.room(20);

}

if (v2 == 2) {
new.room(22);

}

return();