Dec-18-2020, 04:42 PM
Unless you have special reasons, consider putting all your functions at the top of your code and then everything outside a function below it. Right now you have function definitions interspersed with other code. That may give the wrong impression of how the execution flow works.