Sorry yet more of 18004_Kaisan.lua script.

Still not working correctly, Maybe it's just me not understanding
how it all works but comparing it to the way I did it which worked
I cant see much more of a difference...