Updating InsertPiece method