@TheCycoONE  : "Haven't tested this, but what happens if the west or north tile is not available now?"
I've fixed this by adding the "and westTileAccessible" check.