Fixed the testLosing bug

Loops through the amount of guesses, as opposed to the length of the
hidden word. This was originally throwing an error with words less than
8 letters long.