Level 16 is mostly about order of operations. Start by clicking the two yellow squares, then travel upward and clear the purple ones. From there, work your way back down while repeating the same alternating pattern you used on the way up.
The cube only slides until it hits something, so think one move ahead: every click commits you to a full run in that direction. If you end up stuck in a corner, undo and change which colour you clear first.