A Safe and Consistent Game-theoretic Controller for Nonlinear Systems