#Most important function!! bool WinNimm(vector game) { int result = 0; for(int s: game) result ^= s; return s > 0; }