set up pcturn state with ai