The code is terrible and there could be some edge-cases I missed, or perhaps the rules were not explained clearly.
From your description I think you got almost to the end, great job!
As for the turns... for me, because I was testing and tweaking it constantly it was a bit slow at 0.6s per turn, but I gave it to my nephew to try and he was having issues, so I changed it to 1.0s. Then for the final version I went with 0.8s as I wanted it to be challenging, but I should spend more time on this. I thought of doing difficulty levels, but I'd also have to create UI for it and I prioritized other tasks. Now thinking about it, it would take like 20 mins to implement, definitely first thing I would implement given more time.