How did the original court system originate?

In early biblical times Moses heard all the complaints from his tribe. In time the tribe grew to large to resolve all the disputes of his people. He then formed a court system and appointed certain members of his tribe to hear some of the more manageable arguments. Of course, all following his rules. The rules set forth from God almighty. In today's court ,it is evident that the rules in which our God created for us have been thrown out the window. Politics have corrupted our court systems. It is proven that lying is the best course of action. He whom hold the truth usually finds him self between a rock and a hard place. If I lie I will get what I want. If I tell the truth well join the crowd of lonesome losers. By and large.......Moses formed the first judicial system under God.