each is idiomatic in Ruby for traversing enumerables. Also decreases chances of side-effects.
Merge pull request #53 from akujgd/AK_use_each

Refactor