Loop auto incrementing when it is required to increment once

Hi all,

In my game, I need to press the key 1 to get the FD text into the boxes. Each time the player presses the key 1, the FD text is supposed to move to the next empty square. However, when I press one, all ten FD text entities are moving to the available empty square because the loop is auto incrementing ten times at once. Please, take a look and help me!!


PS - My project’s link is - https://playcanvas.com/editor/scene/617120; and the Code’s link is - https://playcanvas.com/editor/code/559372?tabs=12932714