Refactored the guess evaluation method