debug getPiece