void makehard4040puzzle(vector<PuzzlePiece>& myFirstBox)

{
myFirstBox[0].setConnections(0b01101001);
myFirstBox[1].setConnections(0b10011001);
myFirstBox[2].setConnections(0b01100110);
myFirstBox[3].setConnections(0b01101001);
myFirstBox[4].setConnections(0b10100101);
myFirstBox[5].setConnections(0b10010010);
myFirstBox[6].setConnections(0b01101001);
myFirstBox[7].setConnections(0b00101010);
myFirstBox[8].setConnections(0b01000110);
myFirstBox[9].setConnections(0b01011010);
myFirstBox[10].setConnections(0b01011010);
myFirstBox[11].setConnections(0b10010101);
myFirstBox[12].setConnections(0b01010101);
myFirstBox[13].setConnections(0b10101001);
myFirstBox[14].setConnections(0b10010101);
myFirstBox[15].setConnections(0b10101010);
myFirstBox[16].setConnections(0b01101010);
myFirstBox[17].setConnections(0b01101010);
myFirstBox[18].setConnections(0b00100101);
myFirstBox[19].setConnections(0b01100101);
myFirstBox[20].setConnections(0b10010001);
myFirstBox[21].setConnections(0b10010101);
myFirstBox[22].setConnections(0b10101001);
myFirstBox[23].setConnections(0b01010110);
myFirstBox[24].setConnections(0b10101010);
myFirstBox[25].setConnections(0b01101000);
myFirstBox[26].setConnections(0b01101010);
myFirstBox[27].setConnections(0b10010101);
myFirstBox[28].setConnections(0b10011010);
myFirstBox[29].setConnections(0b10011001);
myFirstBox[30].setConnections(0b01101010);
myFirstBox[31].setConnections(0b01100001);
myFirstBox[32].setConnections(0b01101010);
myFirstBox[33].setConnections(0b01100101);
myFirstBox[34].setConnections(0b01010101);
myFirstBox[35].setConnections(0b01010110);
myFirstBox[36].setConnections(0b01101010);
myFirstBox[37].setConnections(0b01010110);
myFirstBox[38].setConnections(0b01100110);
myFirstBox[39].setConnections(0b01011010);
myFirstBox[40].setConnections(0b01100101);
myFirstBox[41].setConnections(0b01101001);
myFirstBox[42].setConnections(0b01010110);
myFirstBox[43].setConnections(0b01000110);
myFirstBox[44].setConnections(0b01011001);
myFirstBox[45].setConnections(0b01101001);
myFirstBox[46].setConnections(0b10000101);
myFirstBox[47].setConnections(0b10011010);
myFirstBox[48].setConnections(0b10010110);
myFirstBox[49].setConnections(0b01011010);
myFirstBox[50].setConnections(0b10011001);
myFirstBox[51].setConnections(0b01001001);
myFirstBox[52].setConnections(0b10100110);
myFirstBox[53].setConnections(0b01001010);
myFirstBox[54].setConnections(0b10010010);
myFirstBox[55].setConnections(0b01001010);
myFirstBox[56].setConnections(0b01101001);
myFirstBox[57].setConnections(0b10100110);
myFirstBox[58].setConnections(0b10010110);
myFirstBox[59].setConnections(0b10010110);
myFirstBox[60].setConnections(0b10101001);
myFirstBox[61].setConnections(0b00100101);
myFirstBox[62].setConnections(0b00101001);
myFirstBox[63].setConnections(0b01101001);
myFirstBox[64].setConnections(0b01101001);
myFirstBox[65].setConnections(0b00100101);
myFirstBox[66].setConnections(0b10010110);
myFirstBox[67].setConnections(0b10011010);
myFirstBox[68].setConnections(0b01100110);
myFirstBox[69].setConnections(0b10010110);
myFirstBox[70].setConnections(0b01010100);
myFirstBox[71].setConnections(0b01011010);
myFirstBox[72].setConnections(0b01100110);
myFirstBox[73].setConnections(0b01100101);
myFirstBox[74].setConnections(0b10011010);
myFirstBox[75].setConnections(0b10010101);
myFirstBox[76].setConnections(0b10011010);
myFirstBox[77].setConnections(0b01100101);
myFirstBox[78].setConnections(0b10011010);
myFirstBox[79].setConnections(0b01010110);
myFirstBox[80].setConnections(0b01101010);
myFirstBox[81].setConnections(0b01010101);
myFirstBox[82].setConnections(0b01100101);
myFirstBox[83].setConnections(0b10100101);
myFirstBox[84].setConnections(0b01010110);
myFirstBox[85].setConnections(0b01101010);
myFirstBox[86].setConnections(0b10011010);
myFirstBox[87].setConnections(0b10010110);
myFirstBox[88].setConnections(0b01101010);
myFirstBox[89].setConnections(0b01011010);
myFirstBox[90].setConnections(0b01010110);
myFirstBox[91].setConnections(0b01100101);
myFirstBox[92].setConnections(0b00100101);
myFirstBox[93].setConnections(0b10100101);
myFirstBox[94].setConnections(0b10010110);
myFirstBox[95].setConnections(0b01100110);
myFirstBox[96].setConnections(0b10000110);
myFirstBox[97].setConnections(0b01001001);
myFirstBox[98].setConnections(0b10010110);
myFirstBox[99].setConnections(0b10100110);
myFirstBox[100].setConnections(0b10100110);
myFirstBox[101].setConnections(0b01100010);
myFirstBox[102].setConnections(0b01101010);
myFirstBox[103].setConnections(0b10011001);
myFirstBox[104].setConnections(0b01010101);
myFirstBox[105].setConnections(0b10011010);
myFirstBox[106].setConnections(0b10101001);
myFirstBox[107].setConnections(0b01100110);
myFirstBox[108].setConnections(0b10101001);
myFirstBox[109].setConnections(0b10101001);
myFirstBox[110].setConnections(0b10010100);
myFirstBox[111].setConnections(0b01100110);
myFirstBox[112].setConnections(0b01010110);
myFirstBox[113].setConnections(0b10010101);
myFirstBox[114].setConnections(0b01011001);
myFirstBox[115].setConnections(0b01101010);
myFirstBox[116].setConnections(0b10100110);
myFirstBox[117].setConnections(0b10100101);
myFirstBox[118].setConnections(0b10101010);
myFirstBox[119].setConnections(0b01011010);
myFirstBox[120].setConnections(0b10011000);
myFirstBox[121].setConnections(0b10010101);
myFirstBox[122].setConnections(0b10100101);
myFirstBox[123].setConnections(0b10000110);
myFirstBox[124].setConnections(0b01100101);
myFirstBox[125].setConnections(0b10100110);
myFirstBox[126].setConnections(0b10101010);
myFirstBox[127].setConnections(0b01101001);
myFirstBox[128].setConnections(0b01010101);
myFirstBox[129].setConnections(0b01100101);
myFirstBox[130].setConnections(0b10001001);
myFirstBox[131].setConnections(0b01101010);
myFirstBox[132].setConnections(0b01101010);
myFirstBox[133].setConnections(0b01100010);
myFirstBox[134].setConnections(0b01100110);
myFirstBox[135].setConnections(0b10100001);
myFirstBox[136].setConnections(0b10011001);
myFirstBox[137].setConnections(0b01101010);
myFirstBox[138].setConnections(0b01011001);
myFirstBox[139].setConnections(0b10001001);
myFirstBox[140].setConnections(0b01010101);
myFirstBox[141].setConnections(0b10100101);
myFirstBox[142].setConnections(0b01100101);
myFirstBox[143].setConnections(0b10100101);
myFirstBox[144].setConnections(0b10011010);
myFirstBox[145].setConnections(0b10010001);
myFirstBox[146].setConnections(0b10100110);
myFirstBox[147].setConnections(0b01101010);
myFirstBox[148].setConnections(0b10010101);
myFirstBox[149].setConnections(0b01100101);
myFirstBox[150].setConnections(0b10100101);
myFirstBox[151].setConnections(0b10100110);
myFirstBox[152].setConnections(0b10010001);
myFirstBox[153].setConnections(0b10101000);
myFirstBox[154].setConnections(0b10011010);
myFirstBox[155].setConnections(0b10100110);
myFirstBox[156].setConnections(0b01100110);
myFirstBox[157].setConnections(0b10100110);
myFirstBox[158].setConnections(0b01011010);
myFirstBox[159].setConnections(0b10100001);
myFirstBox[160].setConnections(0b01010101);
myFirstBox[161].setConnections(0b10011010);
myFirstBox[162].setConnections(0b10101001);
myFirstBox[163].setConnections(0b01010110);
myFirstBox[164].setConnections(0b01100001);
myFirstBox[165].setConnections(0b01011001);
myFirstBox[166].setConnections(0b01101001);
myFirstBox[167].setConnections(0b10011001);
myFirstBox[168].setConnections(0b10010101);
myFirstBox[169].setConnections(0b01100010);
myFirstBox[170].setConnections(0b01010110);
myFirstBox[171].setConnections(0b00010101);
myFirstBox[172].setConnections(0b10100101);
myFirstBox[173].setConnections(0b10101010);
myFirstBox[174].setConnections(0b10011010);
myFirstBox[175].setConnections(0b01100101);
myFirstBox[176].setConnections(0b10100110);
myFirstBox[177].setConnections(0b10101001);
myFirstBox[178].setConnections(0b01011010);
myFirstBox[179].setConnections(0b01101001);
myFirstBox[180].setConnections(0b10010101);
myFirstBox[181].setConnections(0b01101010);
myFirstBox[182].setConnections(0b10010110);
myFirstBox[183].setConnections(0b10010110);
myFirstBox[184].setConnections(0b10011001);
myFirstBox[185].setConnections(0b10100101);
myFirstBox[186].setConnections(0b10010110);
myFirstBox[187].setConnections(0b10010110);
myFirstBox[188].setConnections(0b10011010);
myFirstBox[189].setConnections(0b10010101);
myFirstBox[190].setConnections(0b01010001);
myFirstBox[191].setConnections(0b01010100);
myFirstBox[192].setConnections(0b10101000);
myFirstBox[193].setConnections(0b10100110);
myFirstBox[194].setConnections(0b01010001);
myFirstBox[195].setConnections(0b01010101);
myFirstBox[196].setConnections(0b01100110);
myFirstBox[197].setConnections(0b10100101);
myFirstBox[198].setConnections(0b00100101);
myFirstBox[199].setConnections(0b00100101);
myFirstBox[200].setConnections(0b10101001);
myFirstBox[201].setConnections(0b10101001);
myFirstBox[202].setConnections(0b01011001);
myFirstBox[203].setConnections(0b00001010);
myFirstBox[204].setConnections(0b01010101);
myFirstBox[205].setConnections(0b10011010);
myFirstBox[206].setConnections(0b10100110);
myFirstBox[207].setConnections(0b10100101);
myFirstBox[208].setConnections(0b10011001);
myFirstBox[209].setConnections(0b10100110);
myFirstBox[210].setConnections(0b10101010);
myFirstBox[211].setConnections(0b01010110);
myFirstBox[212].setConnections(0b01010101);
myFirstBox[213].setConnections(0b01100010);
myFirstBox[214].setConnections(0b10010110);
myFirstBox[215].setConnections(0b10011010);
myFirstBox[216].setConnections(0b01100100);
myFirstBox[217].setConnections(0b01010101);
myFirstBox[218].setConnections(0b10011010);
myFirstBox[219].setConnections(0b01100101);
myFirstBox[220].setConnections(0b10101001);
myFirstBox[221].setConnections(0b10010101);
myFirstBox[222].setConnections(0b10100101);
myFirstBox[223].setConnections(0b10101001);
myFirstBox[224].setConnections(0b10100110);
myFirstBox[225].setConnections(0b10011001);
myFirstBox[226].setConnections(0b01011010);
myFirstBox[227].setConnections(0b01000101);
myFirstBox[228].setConnections(0b01100110);
myFirstBox[229].setConnections(0b10101010);
myFirstBox[230].setConnections(0b01010100);
myFirstBox[231].setConnections(0b10101010);
myFirstBox[232].setConnections(0b10011010);
myFirstBox[233].setConnections(0b10100110);
myFirstBox[234].setConnections(0b10011000);
myFirstBox[235].setConnections(0b10011001);
myFirstBox[236].setConnections(0b01010101);
myFirstBox[237].setConnections(0b01001010);
myFirstBox[238].setConnections(0b01100001);
myFirstBox[239].setConnections(0b10011010);
myFirstBox[240].setConnections(0b10010101);
myFirstBox[241].setConnections(0b10100110);
myFirstBox[242].setConnections(0b01010101);
myFirstBox[243].setConnections(0b10010101);
myFirstBox[244].setConnections(0b01101010);
myFirstBox[245].setConnections(0b01101010);
myFirstBox[246].setConnections(0b10100100);
myFirstBox[247].setConnections(0b00101010);
myFirstBox[248].setConnections(0b01100110);
myFirstBox[249].setConnections(0b01101000);
myFirstBox[250].setConnections(0b01101001);
myFirstBox[251].setConnections(0b10101001);
myFirstBox[252].setConnections(0b01010110);
myFirstBox[253].setConnections(0b10010110);
myFirstBox[254].setConnections(0b01100101);
myFirstBox[255].setConnections(0b01011001);
myFirstBox[256].setConnections(0b01100110);
myFirstBox[257].setConnections(0b00100101);
myFirstBox[258].setConnections(0b01101001);
myFirstBox[259].setConnections(0b10010110);
myFirstBox[260].setConnections(0b10011001);
myFirstBox[261].setConnections(0b10011001);
myFirstBox[262].setConnections(0b01101001);
myFirstBox[263].setConnections(0b01010010);
myFirstBox[264].setConnections(0b10101010);
myFirstBox[265].setConnections(0b01101001);
myFirstBox[266].setConnections(0b01101001);
myFirstBox[267].setConnections(0b01101001);
myFirstBox[268].setConnections(0b10010110);
myFirstBox[269].setConnections(0b10011001);
myFirstBox[270].setConnections(0b01101010);
myFirstBox[271].setConnections(0b10000110);
myFirstBox[272].setConnections(0b10010101);
myFirstBox[273].setConnections(0b00010101);
myFirstBox[274].setConnections(0b10101010);
myFirstBox[275].setConnections(0b01010110);
myFirstBox[276].setConnections(0b01100100);
myFirstBox[277].setConnections(0b01010101);
myFirstBox[278].setConnections(0b10010101);
myFirstBox[279].setConnections(0b01010101);
myFirstBox[280].setConnections(0b01011010);
myFirstBox[281].setConnections(0b10011010);
myFirstBox[282].setConnections(0b00010101);
myFirstBox[283].setConnections(0b10010110);
myFirstBox[284].setConnections(0b10100101);
myFirstBox[285].setConnections(0b10010101);
myFirstBox[286].setConnections(0b01101001);
myFirstBox[287].setConnections(0b10100101);
myFirstBox[288].setConnections(0b01101001);
myFirstBox[289].setConnections(0b10011001);
myFirstBox[290].setConnections(0b01011001);
myFirstBox[291].setConnections(0b10010110);
myFirstBox[292].setConnections(0b01010101);
myFirstBox[293].setConnections(0b10100110);
myFirstBox[294].setConnections(0b10101001);
myFirstBox[295].setConnections(0b10101001);
myFirstBox[296].setConnections(0b01011010);
myFirstBox[297].setConnections(0b10100101);
myFirstBox[298].setConnections(0b01011010);
myFirstBox[299].setConnections(0b01100110);
myFirstBox[300].setConnections(0b10010101);
myFirstBox[301].setConnections(0b10101001);
myFirstBox[302].setConnections(0b10011001);
myFirstBox[303].setConnections(0b01010101);
myFirstBox[304].setConnections(0b01010101);
myFirstBox[305].setConnections(0b10101001);
myFirstBox[306].setConnections(0b01100101);
myFirstBox[307].setConnections(0b01101000);
myFirstBox[308].setConnections(0b01010101);
myFirstBox[309].setConnections(0b10010110);
myFirstBox[310].setConnections(0b10010110);
myFirstBox[311].setConnections(0b01011010);
myFirstBox[312].setConnections(0b10010110);
myFirstBox[313].setConnections(0b01011001);
myFirstBox[314].setConnections(0b01010110);
myFirstBox[315].setConnections(0b01101001);
myFirstBox[316].setConnections(0b10100101);
myFirstBox[317].setConnections(0b10101010);
myFirstBox[318].setConnections(0b10011001);
myFirstBox[319].setConnections(0b01010110);
myFirstBox[320].setConnections(0b10100000);
myFirstBox[321].setConnections(0b10100101);
myFirstBox[322].setConnections(0b00010101);
myFirstBox[323].setConnections(0b01010110);
myFirstBox[324].setConnections(0b01101010);
myFirstBox[325].setConnections(0b10010110);
myFirstBox[326].setConnections(0b00001001);
myFirstBox[327].setConnections(0b10011010);
myFirstBox[328].setConnections(0b10101010);
myFirstBox[329].setConnections(0b01100101);
myFirstBox[330].setConnections(0b01011010);
myFirstBox[331].setConnections(0b01101010);
myFirstBox[332].setConnections(0b10100101);
myFirstBox[333].setConnections(0b10100101);
myFirstBox[334].setConnections(0b01011000);
myFirstBox[335].setConnections(0b01010110);
myFirstBox[336].setConnections(0b00100110);
myFirstBox[337].setConnections(0b01101010);
myFirstBox[338].setConnections(0b01101010);
myFirstBox[339].setConnections(0b10010110);
myFirstBox[340].setConnections(0b10101010);
myFirstBox[341].setConnections(0b01100110);
myFirstBox[342].setConnections(0b10011000);
myFirstBox[343].setConnections(0b10101010);
myFirstBox[344].setConnections(0b01011001);
myFirstBox[345].setConnections(0b01101001);
myFirstBox[346].setConnections(0b10010101);
myFirstBox[347].setConnections(0b10101010);
myFirstBox[348].setConnections(0b10011001);
myFirstBox[349].setConnections(0b01101001);
myFirstBox[350].setConnections(0b01010110);
myFirstBox[351].setConnections(0b10000110);
myFirstBox[352].setConnections(0b10010110);
myFirstBox[353].setConnections(0b10011010);
myFirstBox[354].setConnections(0b01010110);
myFirstBox[355].setConnections(0b10010010);
myFirstBox[356].setConnections(0b10100110);
myFirstBox[357].setConnections(0b10101001);
myFirstBox[358].setConnections(0b01011001);
myFirstBox[359].setConnections(0b01010000);
myFirstBox[360].setConnections(0b10011001);
myFirstBox[361].setConnections(0b01101001);
myFirstBox[362].setConnections(0b01100001);
myFirstBox[363].setConnections(0b10100110);
myFirstBox[364].setConnections(0b10100101);
myFirstBox[365].setConnections(0b01100101);
myFirstBox[366].setConnections(0b01001010);
myFirstBox[367].setConnections(0b10010110);
myFirstBox[368].setConnections(0b10010101);
myFirstBox[369].setConnections(0b10010100);
myFirstBox[370].setConnections(0b01010101);
myFirstBox[371].setConnections(0b01011000);
myFirstBox[372].setConnections(0b01100010);
myFirstBox[373].setConnections(0b10011001);
myFirstBox[374].setConnections(0b01100110);
myFirstBox[375].setConnections(0b10100101);
myFirstBox[376].setConnections(0b01000110);
myFirstBox[377].setConnections(0b01010101);
myFirstBox[378].setConnections(0b01100110);
myFirstBox[379].setConnections(0b10100110);
myFirstBox[380].setConnections(0b00100110);
myFirstBox[381].setConnections(0b01101001);
myFirstBox[382].setConnections(0b01100101);
myFirstBox[383].setConnections(0b10010101);
myFirstBox[384].setConnections(0b01101001);
myFirstBox[385].setConnections(0b10010110);
myFirstBox[386].setConnections(0b10010101);
myFirstBox[387].setConnections(0b10101001);
myFirstBox[388].setConnections(0b10011001);
myFirstBox[389].setConnections(0b01010110);
myFirstBox[390].setConnections(0b10100010);
myFirstBox[391].setConnections(0b10101001);
myFirstBox[392].setConnections(0b01101010);
myFirstBox[393].setConnections(0b10101010);
myFirstBox[394].setConnections(0b01100110);
myFirstBox[395].setConnections(0b01010101);
myFirstBox[396].setConnections(0b01101001);
myFirstBox[397].setConnections(0b10010101);
myFirstBox[398].setConnections(0b10100110);
myFirstBox[399].setConnections(0b01101010);
}