Added code to figure out what tiles to download

Added code to figure out what tiles to download