FINALLY! getting the lowest cost to get from A to B

n_n