Erdogan loses the battle, but the war is far from over