How does my bot tell between colors?

1 
1