Basically everything related to the chess movement, logic and UI was done through custom code.
Ah, was there perhaps a script made from this masterpiece? Actually I wonder if scripts will also work in the EX version of the engine.