made the state enum static and corrected a mistake when checking for headland