Complex sentence: Nygma retrieves his gun and confesses to the murders before they're surrounded by the GCPD including Barnes and Bullock.
Split into simpler sentences: Nygma retrieves his gun and confesses to the murders. They're then surrounded by the GCPD including Barnes and Bullock.