Adjusted findEmptyAdjacents to be more useful in multiple situations.