finally found centeroid of state paths to make turning into pie graph possible