updated JS to keep track of number of guesses
Working JS of hot and cold game