fixed bug in tile neighbor setting