Add checkGuess() function and make game work