Implemented worstquality choose route