Move Position.getTile() to Lua