adding tile logic
still working