Fix "distance" function in the "misc" module
Minor changes in the "make_scoreboard" method