added texture management, modified map, block, entity to match texture loading