Full three fold repetition detection only at root node