My guess is that C2 does not do all the conditions sequentially (the logical way), it does everything at the same time. So basically randomPiece at 7 is NOT computed before the condition 8 is tested.
You should add wait to do anything in order you like...