correct numOfPieces; array bounds bitfield