scruffle body.

The main body of scruffle problem solution