 As you can see, the script is missing lines on the top layer, and extruding over the hole when it should be traveling.