added the game validation for hw2
part 2 completed