Draw a closed path into the diagramm passing through every field with a house inside. In the fields with a house, the path turns 90°. The path may cross every field at max once and may not cross fields with a tree.