There are levels, and when you reach the flag the next level starts.
Yeah I know, I mean if the robot's next step is designed for each lever, instead of random, it might be better(or it's just me feeling that way ;)