added some long abandoned sliding tiles code.