added PieceGen