AI's Influence on the Legal System: A Detailed Look