refactoru starcraft ranking exercise