using "while" in the setup

@Loyc, first code - excused.
Please avoid Fritzy drawings - they're half a step away from useless when sharing or debugging a project.

Size reduced for faster loading