The problem I have is that when I enter an element from the array, the user input resets to the start of the loop, for example when i user input the third element from the a