Draw lines with your mouse to redirect the falling sand. Erase lines (click one "eraser" at the bottom) or burn them ("fire") or try the "???".