init deck function