public int setPoint(int color, int x, int y) {
        if (x >= size || x < 0 || y >= size || y < 0)
            return OFF_BOARD;
        if (color != BLANK && color != BLACK && color != WHITE)
            return OFF_BOARD;
        board[x][y] = color;
        return color;
    }