Made the tiles dynamic