Implement Color timing for how many times a robot see a barrier.