removed duplicate of guessesRemaining function