Instead of having and if statement inside a loop, you can simple use the until loop: 
    
    
![image](https://f.cloud.github.com/assets/3854347/2353719/3432c460-a5a8-11e3-9c62-ae2776d0c662.png)