Change file closing check to look for lower-right-most tile