tiles swapping writen