result = state[0]<<0|state[1]<<1|state[2]<<2|state[3]<<3|state[4]<<4|state[5]<<5|state[6]<<6|state[7]<<8|
state[8]<<8|state[9]<<9|state[10]<<10|state[11]<<11|state[12]<<12|state[13]<<13|state[14]<<14|state[15]<<15;
for (iterator = 0; iterator < 16; iterator++){
result |= state[iterator]<<iterator;
for (iterator = 0; iterator < 16; iterator++){
result = result<<1;
if(state[iterator] > 0) result++;