Added taken piece tracking, and slightly smarter AI