adding canTerminate method to Ranker interface.