isInPolygon Final version

Should be correct now , please check