fixing extractSidePolys as it needs to split the sides dependent on weather the number of points is even or not