Swipe the blocks in different sizes around the grid in order to clear the way so that the green block can get to the exit to finish each level.