A question about coding (bar chart race)

This is my code.