Select groups of interloked bricks and move them to fit together in piles of seven of a single colour. You can only move a group of bricks to a pile if it is empty, or they will fit.
Lower levels have plenty of empty piles to use as workspace, harder levels move bricks and fewer spare piles.