ai is working, need to update state so game pieces are flipped.