Improved setToTile