public ulong key() { ulong ret = 0; ret += counter.key() * 10000000000; foreach (Karta k in hand) { ret += CardCounter.brojToNumber(k.Broj) * 100 * ((uint)Math.Pow(100, ((uint)((int)k.Boja)))); } if (penalty) { ret += 10000000000000000000; } return(ret); }