fixed bug that occurs when google spits back less than 3 routes by iterating over the number of routes it gives instead of assuming it will be three