debug getRandomPiece
modify the implement of SetNode and getSet, greatly improve the efficiency, delete the old codes