piece checking working