Made objectSelection color changes more general by calling the functions in funcAndStats. Updated Distance Formula.