Re-implementing ScriptedGameCore; Need to check the rendering error from scripts.