You have to "connect" a spawnpoint with such a little cube. I would do it with a special data structure. Maybe some connected arrays.