modify calcRoute so that it pushes routes into routeArray when created