My son stuck on Stormy Path

Hello,

Help me please

My son stuck on Stormy Path.

We could not solve this problem. We tried this code:

for (j=0; j<3; j++) {
if(isObstacle){
jump();
}
for (i=1; i<2; i+=2) {
forward();
}

}

The problem is here Stormy Path

Thank you

for (i=0; i<7; i++) {
if (isObstacle()){
jump();
i+=1;
}

else {
    forward();
}

}