Erase the cubes in all directions