Implement terminalInputNodes(). Old definition of 'intermediate range' is wonky, but I'm leaving it here in case I'm misunderstanding something.