refactor game validation