created game node class from which the bst and list nodes both inherit from