Mad Pod Racing - Puzzle Discussion

Hi everyone,
I’m new and in Bronze league for now. While rewriting my code and trying some things I had this result:
replay
The Bot won at the last step even though I was ahead. There seems to be no particular reasons (such as my bot taking too long to respond), maybe a bug ?
What do you think ?