The Resolution of the Mongol-Mamluk War