in the midst of building a tournament function