You need to go back to basic training. Which means the dog is either in a crate, outside, or leashed to you. That way you can get him outside to potty when it seems he needs to do.
If possible, block off the living room so he cannot go in there.
more training links on left and right