added in a test function which generates random chords to test the chord graph
chord graph now working with dynamic data