Added if-statements to make sure person Class's createRoutePlan wouldn't go over index of route array size when iterating