Use set-nth instead of set-array-nth (look at \ set-array-nth help, it's not the right word for this). Or to make it even simpler use make: [ white-pawn , black-pawn , ... ] { } make