add targetInElements method to JudgeUtils