Found error with pieceH logic