Added alert to while loop

described experiment to the user using alert