Here's how I assume their bot works: (somebody send me the code)
The plate colors in your system are static, meaning that they don't change every round. The red plate is always in the same position. They've simply recorded the positions and go to the stored position that corresponds to the color.
The solution is to dynamically color the plates every round so that colors will always be in different positions.