Click and drag to connect all the dots.
Keep the total sum at or above 0.
After level 5, the level editor is accessible.
(In the level editor, press 1,2,3,4,5,-,+ to change the values of the numbers.)