In food processor, blend shallots, garlic,ginger, chili flakes, cumin, coriander and turmeric to form a paste. In a saucepan, combine coconut milk and the paste. Bring to a boil and cook for 10 minutes. Add chicken, tomato, cloves, cinnamon stick, star anise, salt and potatoes. Cook until potatoes are soft. Add tamarind liquid and cook for 10 minutes. Serve over rice.