got color filling to work
make the sorting of polygons be done in the fill poly functiong