modulo for ball color sequence