I got 2 college degress but did bad in 2 JCs. Need advise in getting to law school.?

Ok. I went to two junior college. Junior College X I withdrew like 8 courses in two years—I got an academic dismissal. However, I was working and was 18-19 and I didn’t know what I was doing. In fact, I was not consistent. Then I went to Junior College Y where I withdrew classes too (I got academic dismissal there too but got reinstated) and got a high enough GPA at a 3.5 to transfer to the university. At the university I majored in history and political science. I got a 3.47 GPA but had several As and all Bs. I did not get a single C and did not withdraw from any class. Do I stand a chance at going to law school?

Now, I did get an academic dismissal at both community college X and Y. However, at community college Y I continued taking classes online (doesn’t show online on my transcript) and got more As and even got dean’s honor. I did not return to community college X—DO I NEED TO GO BACK?
LSAT scores: 157 and then 165
1) Do I need to go back to community college X to undo the academic dismissal? I’m still shown there to have been on academic dismissal.

2) Would it be a good idea to go to graduate school and get a master’s in political science to show consistency since I think I have like 18 Ws in the JC.