The below should give you an idea how to go about clearing the first section:
The key is then to go to 6, not 5. Loop up and back around and make sure to clear out the tile below:
The last tricky part of this level is creating an end and leaving a path that allows you to get to that end. The below formation is one way to do it: