refactored the way colours are decided
refactoring again