Why do I receive the error \"Variable-sized object may not be initialized\" with the following code?
int boardAux[length][length] = {{0}};
You cannot do it. C compiler cannot do such a complex thing on stack.
You have to use heap and dynamic allocation.
What you really need to do:
Use *access(boardAux, x, y, size) = 42 to interact with the matrix.