chance cards code reorganizatio