Refactored GameNode to use Set[T] instead of Iterator[T]