setTile method added