Teaching robots to use color in moving objects