Refactored the 45 degree flood-fill testing