Please learn to use Code Tags </> for posting code.
I suspect this is wrong:
while(Wire.available() < 6);