Updated circle color algorithm