public static int[] contains(String position) {

        int[] v = new int[2];
        for (int i = 2; i < 10; i++) {
            for (int j = 2; j < 10; j++) {
                for (int k = 2; k < 10; k++) {
                    for (int l = 2; l < 10; l++) {
                        if (position.equals(boardOfMoves[i][j] + boardOfMoves[k][l])) {
                            v[0] = board[i][j];
                            v[1] = board[k][l];
                        }
                    }
                }
            }
        }
        return v;
    }