cardlg: filter out cars already in the train or assigned to another