Refactored the 180 degree flood-fill testing