Add Tile direction logic