public void setBarrier(Vector2 v, bool value) { List<int> temp = vecToBoard(v); int x=temp[0],y=temp[1]; board[x,y].activateWall(value); }