Mamluks and Janissaries playing the long game