Implements tournament ranking