get max cubes from cubes complex