Refactored ProcessGuess() method