Cottrell seals dramatic last-ball victory for leaders Patriots