the almohads tried to counterattack but failed