Exercise 6: Simulated Annealing - Intermediate

I cannot figure out why the code below does not pass the “Test”.
It runs and seems to me to give the correct results, grateful for support!

The error message I get when clicking “Test” reads:
“Test Failed: AssertionError: 48 not greater than 70 : Please check your algorithm”.
The first number in the message varies with each Test, but the second number is always “70”.