Replaces while iterators with foreach call
Merge pull request #182 from thatsIch/While

Replaces while iterators with foreach call