rulesInit funct, demoCard func,showRules on click funct created