fix the way cubes are identified (not by xyz anymore but by id)