Yes, time is a reserved name that refers to the Python library time. Call the variable something else and it should work.
the problem is that the minigame uses that time variable to countdown to the end of each phase. im not entirely sure what to change in order to separate the countdown time from the default time https://imgur.com/ZxmZGCv