Added world clear function and entity destroy function.