Cleaned up code, introduced "withinNoMansLand" function.