added in functionality to take into account wrong guesses