Often, when a property gets an offer that is accepted, the selling agent will keep accepting offers in case the deal falls through. This is called a back up offer.
The one who gets second in line will get the deal, as long as it is accepted, if the first one does not close.