add pieces.php script