forfeit index fix

Changed while loop to a for loop