working on piece selection, still have logic error in piece comparison