still in process of refactoring tournament coffeescript