code for individual textures per world & fixed some bugs