changed distace and degree update function
Merge branch 'master' of https://github.com/ErroneousPromulgation/Project2