to advance to the next level, the robot has to run out of power before he can reach the end of the maze you build for him. If he reaches the end he'll reset to give you another chance to build a maze which is too long for him to finish.
Was that what was happening?