Creating char array from cubes list