introduced findTile to handle tile search code in one place.