Improved hugging logic! Now I'll (maybe) hug the right person!