Make sure the counter variable decrements each time the loop repeats.

Make sure to pick i--.