Factor out updateTileUsage