for i in 0..x { if @cube[z][y][i] != "." return false end }