moved coffeescript tournament code into a class