tile logic updated