added the validation for the game