added id to pieceMoved