Added function to check if specific tile is within visible distance