You likely need to put in a higher fence, and block underneath the fence if they sometimes dig out. Otherwise, it's will be almost impossible to keep the dog in the yard—eventually, something's going to happen and they're going to bolt.