Hamas fights the Salafists to gain more legitimacy