rename builTilesFromMatrix to buildTiles