queue to cross the bridge