finished king logic