Incorporated "justinPrintGraph" method

ArrayList.get(index) instead of array[index], plus main method
adjustment