Upgraded AI for because of the new movePiece function.