The first and most evident issue: strings content must be compared with equals method ... not with == .

I can also see { } which are useless (e.g. the { after guesses.add(guess); ) even if this...