A two-player game representation for a class of infinite horizon control problems under state constraints