Fixed errors on tile.ts and globals.ts