Updated to manage a 8x8x8, work entirely correctly