There is a breach of contract in which a person A promised to never drink wine in the following month, while a person B promised to sell his car to the person A for a specific amount.

Person B decided one day after signing the contract not to sell his car to the person A.

What can the person A do?

context: studying contract law

Thank you.