added aiCallback, whenever a piece is moved, this function will be called.