added reset button, isRepeat(), and remaining guesses