Function makePiece