Constraint Satisfaction Problems and Games