7-Segment Display Wiring and Programming

I put the delay at the end. The code I was running didn't have anything else in it, so as soon as it finished sending say 68 it was sending another 8 through that got rid of the 6.