added duplicate click detection (ignore visited and fully explored state).