Collision depending on color fixed

First version of collision depending on color done!