Now sending in GameState instead of ScriptEngine to script function. Added new helper classes.