Fixed forfeit error

Changed while loop to for loop