generic plugin framework for cards games