Chanakya then started consolidating the power by eliminating Nanda's loyalists, who had been harassing people in various parts of the kingdom. Chanakya learned about a weaver who would burn any part of his house infested with cockroaches. Chanakya assigned the responsibility of crushing the rebels to this weaver. Soon, the kingdom was free of insurgents. Chanakya also burned a village that had refused him food in the past. He filled the royal treasury by inviting rich merchants to his home, getting them drunk and gambling with a loaded dice.