Updated main.js with the connections array -> contains start, end, capacity