Try to sort the colored cars into positions on the road until all cars are of the same color and are eliminated.