Added a function to prevent tunneling!

Also moved the sign function into tile.lua.