Rather than doing the while loop until the user guesses correctly, I'd do something like this:

```ruby
while guess_count > 0 do
...
guess_count -= 1
...
end
```