In a graveyard , Nick shows who he really is , and tells Tom that he must pay with his soul . Nick says he has worked for him for a year and a day ; but as midnight strikes , Nick offers him a way of escape in the form of a game of cards , which Tom wins , but only because he was thinking of Anne . In a graveyard , Nick reveals his identity and demands payment from Tom , in the form of his soul ; but as midnight strikes , Nick offers him an escape in the form of a game of cards , which Tom wins , thanks to the benign influence of Anne .