Functions for the shiny app to work

Commit of distances.R, find_radius.R, global.R, plot_ball.R, server.R,
ui.R