Create the initial structure: The Card class, the events handlers and the main loop to put the cards on the stage.