Take a pan and dry roast all the marinade ingredients except turmeric powder, ginger and garlic flakes.
Roast on low flame till you get a roasted aroma.
Allow it to cool for sometime.
Grind the roasted ingredients with turmeric powder, ginger and garlic.
Take the chicken pieces and rub the paste all over them.
Allow to marinate 2 or 3 hours.
Take a pan and heat with oil.
Add bay leaf, cardamoms and sauté for few seconds.
Add sliced onions, Sauté till they turn into light golden brown colour.
Add the marinade chicken and fry on medium flame till the chicken pieces are turn into light brown.
Now add the green chillies, salt and mix well.
Then add 2 cups of water and combine well.
Now close with a lid and cook on low flame till the chicken pieces are completely tenderised.
Then add tamarind paste and mix well.
Reduce the flame and cook for few more mins.
Finally add vinegar, sugar and mix well.