fix segment script so that it actually works

though there is a problem with the list of pixels it should be picking up, way to many repeats