Break Statement

So I created a break statement, in which I wanted a while loop to continue until the use inputted the letter r. However, the loop end as soon as the first letter is entered. Do any of you have the reason why this may be happening?

In your if statement, use two == for the comparison

if (guess == secret)