Start by clicking on a colored square and take the most direct route to the same color circle. Do not cross into another color or the lines disappear. Once you connect all the squares hit the done button. Repeat for both levels.