RuleChecking function completed: getNth checked