Small tweaks. Replaced cardState with array of primitive booleans