private void setValue(int x, int y, int val) { int absPos = getAbsPosition(x, y); state[absPos] = val; } }