task: Stack the farthest cube on top of the closest one