//tries[i] = attempts; <--- You need to save the guess, Nam.
Merge pull request #3 from SAC-CS/patch-4

//tries[i] = attempts; <--- You need to save the guess, Nam.