error checking
logic fixed is matchRoute()
remove debugging
fixed array indexes