updated gradle version and build tools to newest. modified distance algorithm to be half what they say, however i may make it just purely customizable