data transfers working

The data is moving properly now. But the algorithm gets stuck in an infinite loop. Something is wrong in the BandB somewhere. But im not really sure where to look.