Horse E was running ahead of horse D in the middle of the race. Horse C was ahead of horse A but behind horse B. Horse A was running ahead of horse E. From this point on, the fourth-placed horse took the lead and won the race. If the positions of the other horses remained the same, which horse was in the middle at the end of the race?
1
C
2
E
3
B
4
A