How Does a Purchase Agreement Work in New York Real Estate?