simple tile logic