Add math library to luacontroller, and make sure to copy stuff so code can't get out of the sandbox.