added validation for input of maximum number of people in a game