Improved scripting interface. Added mock-game mechanics.