function that draws routes that follow the routes