[PVP] Take into account rejoining players and make teamratio logic more readable.