Fixing path finding

* The bitwise And with 0x8ff had mapped different
tiles to the same index.