void
waitForPosition(int position){
	while(*SENSOR_COUNT < position){
		if((*SENSOR_COUNT % 32) == 0){
			printf("\n\nDistance = %d",
				*SENSOR_COUNT);
		}
		if(stopped){
			motor(MOTOR_NUMBER, 0);
			while(stopped){
				defer();
			}
			motor(MOTOR_NUMBER, MOTOR_POWER);
		} else {
			defer();
		}
	}
}
		