Having trouble controlling 3 Row Seven Segment with 4 shift register 74hc595

my code is not working properly, still confused specify the position of digit, and I can not specify the columns and rows of each segment