find_next_tile now looks for the next tile with distance != 0