In most cases, this happens when the cooking oil in the pan is too hot, so the the chicken cooked too quickly on the outside and browned too fast while not cooking the inside. An easy solution to this problem is to use a thermometer to test your oil to make sure it's at the right temperature before you add your chicken to the pot.