Improved engine for singleplayer and play script