Changed whitePawnsInfo[(int)Col(i)] += 1<<Row(i); to whitePawnsInfo[(int)Col(i)] += 1<<Row(63 - i); in order to get the pawns info in the same way for both colors