Cards main program first draft