fixed aivsaimode and simple-ai so that the pieces maintain their correct owner