Looks way better than my quick last minute hack, but boy, does it take its sweet time, even with 40 MHz.
The asm version is much faster, but I never got to the point to do it the selection. So the contest was a nice challenge get it done in BASIC. I hope I can add it to the asm version soon.