centroid doesn't work, created new algorithm to find best points
removed some dead code