Detecting Partisan Gerrymandering Through Mathematical Analysis: A Case Study Of South Carolina