Green flag!
I created this because this was one of the lessons on code.org! I tried to make it as confusing as possible! Enjoy! Note- 5 is REALLY SMALL! Try 100. There is a glitch if you do 300.