Problem with founding the closest enemy

seems like your code does not compare the progress of the stored closest variable to the next telo variable.

if telo.progress > closest.progress:

You can format code with three ticks ```