change passing of piece to bolean