it is in solve level when line 8 completes. but even if i come back to the starting level i am not able to run the lines 9-25 continuously

it gives me the error and after that it runs if i compile it again.

I have to run lines 9-25 twice to make it work. not sure why this happens.