I just added an update to explain my script since it has no commenting and strange variable names.
Hi, Welcome!! It is nice to see more developers in this posts.
You don't need to quote all the previous text just to reply a single line, just quote those parts that are interesting.
BTW as digaran said before puzzle 15 in 1 minute is very slow. But i remember when i start to code for this I also start with such low speed, so as a starting point that is OK.
Any doubt just ask.