candy, powx_n, spiral_matrix 1 and 2