Add team ranking style and new logic