Using local version of spreadsheet and fixed big bug in weights that didn't use optimal orientation
Using orientations, not locations!
Changed threshold and back-compatibility of the function
Going back to original thresholds, and updating rand.