added movement averages; changed from squareDistance to just plain distance -- square roots be damned