Replace `foreach` with `for`
Replace `foreach` with `for`

It's probably better to use just `for` instead of `foreach`, 'cos it has
the same behaviour, but looks shorter.

tune-it/jplbot,tune-it/jplbot,tune-it/jplbot