A deep neural network-based method for solving obstacle problems. (August 2023)