3D alg gets correct answer sequentially