Route::check_cycles_and_backtracks implementation done