Corrected console.log(g) - console.log(guess)