tiling function tiling(x, y, s, l, mode) x and y = start position; s = size of the line; l = recursion level; mode = use between "straight", "diagonal" or "both";