code for loading boxes from level (not working)