Dry tilestache

Moving get_tiles logic around so we dont repeat lines