Refactored guess to handle multiple matches.